diff --git a/cocos2d/core/label/CCSGLabelCanvasRenderCmd.js b/cocos2d/core/label/CCSGLabelCanvasRenderCmd.js index 363a5a8ef7..489527321a 100644 --- a/cocos2d/core/label/CCSGLabelCanvasRenderCmd.js +++ b/cocos2d/core/label/CCSGLabelCanvasRenderCmd.js @@ -75,12 +75,13 @@ if (opacityDirty) this._syncDisplayOpacity(); - if(colorDirty || opacityDirty || (locFlag & flags.textDirty)){ + if(colorDirty || opacityDirty || (this._dirtyFlag & flags.textDirty)){ this._rebuildLabelSkin(); } - if (locFlag & flags.transformDirty) //update the transform + if (this._dirtyFlag & flags.transformDirty) { this.transform(parentCmd); + } }; proto._getLineHeight = function () {