Fix bug when font is null and useSystemFont is false (#2948)

This commit is contained in:
Knox
2018-07-06 18:01:04 +08:00
committed by pandamicro
parent 598a78cb66
commit cf6ddfed4e
+6
View File
@@ -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();
}
},