mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
Fix bug when font is null and useSystemFont is false (#2948)
This commit is contained in:
@@ -418,6 +418,12 @@ let Label = cc.Class({
|
||||
this._isSystemFontUsed = !!value;
|
||||
if (value) {
|
||||
this.font = null;
|
||||
this._updateAssembler();
|
||||
this._updateRenderData();
|
||||
this._checkStringEmpty();
|
||||
}
|
||||
else if (!this._userDefinedFont) {
|
||||
this.disableRender();
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user