mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
Fix error when check useSystemFont. (#7900)
This commit is contained in:
@@ -456,13 +456,9 @@ export class Label extends UIRenderable {
|
||||
this._isSystemFontUsed = !!value;
|
||||
if (value) {
|
||||
this.font = null;
|
||||
this._flushAssembler();
|
||||
this.updateRenderData();
|
||||
}
|
||||
// else if (!this._userDefinedFont) {
|
||||
// this.disableRender();
|
||||
// }
|
||||
|
||||
this._flushAssembler();
|
||||
this.updateRenderData();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user