From 6dbf61dc4cdbb5903dc915e0bbe2255dd1e48890 Mon Sep 17 00:00:00 2001 From: knoxHuang <821686174@qq.com> Date: Tue, 20 Jun 2017 11:44:40 +0800 Subject: [PATCH] fix the color setting in the canvas failed --- cocos2d/core/sprites/CCScale9SpriteCanvasRenderCmd.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cocos2d/core/sprites/CCScale9SpriteCanvasRenderCmd.js b/cocos2d/core/sprites/CCScale9SpriteCanvasRenderCmd.js index 0e44c52252..113db3db11 100644 --- a/cocos2d/core/sprites/CCScale9SpriteCanvasRenderCmd.js +++ b/cocos2d/core/sprites/CCScale9SpriteCanvasRenderCmd.js @@ -47,6 +47,11 @@ proto._updateDisplayColor = function(parentColor){ this._originalTexture = this._textureToRender = null; }; +proto._syncDisplayColor = function(parentColor){ + _ccsg.Node.WebGLRenderCmd.prototype._syncDisplayColor.call(this, parentColor); + this._originalTexture = this._textureToRender = null; +}; + proto.setState = function(state){ if(this._state === state) return;