We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 85acabe + 2078448 commit 082aae7Copy full SHA for 082aae7
cocos2d/core/base-nodes/CCNodeCanvasRenderCmd.js
@@ -483,7 +483,7 @@ cc.Node.RenderCmd.prototype = {
483
if (this._cacheDirty === false) {
484
this._cacheDirty = true;
485
var cachedP = this._cachedParent;
486
- cachedP && cachedP != this && cachedP._setNodeDirtyForCache();
+ cachedP && cachedP != this && cachedP._setNodeDirtyForCache && cachedP._setNodeDirtyForCache();
487
}
488
};
489
cocos2d/core/sprites/CCSpriteBatchNode.js
@@ -162,7 +162,8 @@ cc.SpriteBatchNode = cc.Node.extend(/** @lends cc.SpriteBatchNode# */{
162
},
163
164
_setNodeDirtyForCache: function () {
165
- this._cacheDirty = true;
+ if(this._renderCmd && this._renderCmd._setNodeDirtyForCache)
166
+ this._renderCmd._setNodeDirtyForCache();
167
168
169
/**
0 commit comments