Skip to content

Commit 55b0490

Browse files
committed
Fixed a LayerRenderCmd's bug
1 parent 8586470 commit 55b0490

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cocos2d/core/layers/CCLayerCanvasRenderCmd.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,15 @@
6565
cc.Node.RenderCmd.prototype.updateStatus.call(this);
6666
};
6767

68-
proto._syncStatus = function () {
68+
proto._syncStatus = function (parentCmd) {
6969
var flags = cc.Node._dirtyFlags, locFlag = this._dirtyFlag;
7070
if (locFlag & flags.orderDirty) {
7171
this._cacheDirty = true;
7272
if(this._updateCache === 0)
7373
this._updateCache = 2;
7474
this._dirtyFlag = this._dirtyFlag & flags.orderDirty ^ this._dirtyFlag;
7575
}
76-
77-
cc.Node.RenderCmd.prototype._syncStatus.call(this);
76+
cc.Node.RenderCmd.prototype._syncStatus.call(this, parentCmd);
7877
};
7978

8079
proto.transform = function (parentCmd, recursive) {

0 commit comments

Comments
 (0)