Skip to content

Commit c4f4886

Browse files
author
pandamicro
committed
Fix protected node transform issue
1 parent 5ba285e commit c4f4886

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Diff for: cocos2d/core/base-nodes/CCNodeCanvasRenderCmd.js

+10
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,16 @@ function transformChildTree (root) {
6969
child._renderCmd.transform(parentCmd);
7070
}
7171
}
72+
var pChildren = curr._protectedChildren;
73+
if (pChildren && pChildren.length > 0) {
74+
parentCmd = curr._renderCmd;
75+
for (i = 0, len = pChildren.length; i < len; ++i) {
76+
child = pChildren[i];
77+
stack[index] = child;
78+
index++;
79+
child._renderCmd.transform(parentCmd);
80+
}
81+
}
7282
}
7383
}
7484

0 commit comments

Comments
 (0)