fix label opacity performance issue

This commit is contained in:
zilongshanren
2017-01-13 11:44:09 +08:00
parent d30c86bcf2
commit 435b895c4e
2 changed files with 1 additions and 6 deletions
@@ -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);