mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
fix label opacity performance issue
This commit is contained in:
@@ -46,7 +46,7 @@
|
||||
this._dirtyFlag &= ~dirtyFlags.contentDirty;
|
||||
}
|
||||
|
||||
if (colorDirty || opacityDirty || (locFlag & flags.textDirty)) {
|
||||
if (colorDirty || (locFlag & flags.textDirty)) {
|
||||
this._notifyRegionStatus && this._notifyRegionStatus(_ccsg.Node.CanvasRenderCmd.RegionStatus.Dirty);
|
||||
this._rebuildLabelSkin();
|
||||
}
|
||||
|
||||
@@ -61,11 +61,6 @@ cc.js.mixin(proto, _ccsg.Label.TTFLabelBaker.prototype);
|
||||
|
||||
proto.constructor = _ccsg.Label.WebGLRenderCmd;
|
||||
|
||||
proto._updateDisplayOpacity = function (parentOpacity) {
|
||||
_ccsg.Node.WebGLRenderCmd.prototype._updateDisplayOpacity.call(this, parentOpacity);
|
||||
this._rebuildLabelSkin();
|
||||
};
|
||||
|
||||
proto.transform = function (parentCmd, recursive) {
|
||||
this.originTransform(parentCmd, recursive);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user