Skip to content

Commit 076d28f

Browse files
committed
Fixed cocos2d#1759 Fix a bug of cc.BuilderReader
1 parent 9cb1022 commit 076d28f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

extensions/CCBReader/CCBReader.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -946,6 +946,8 @@ cc.BuilderReader.load = function (ccbFilePath, owner, parentSize, ccbRootPath) {
946946

947947
var nodesWithAnimationManagers = reader.getNodesWithAnimationManagers();
948948
var animationManagersForNodes = reader.getAnimationManagersForNodes();
949+
if(nodesWithAnimationManagers || animationManagersForNodes)
950+
return node;
949951
// Attach animation managers to nodes and assign root node callbacks and member variables
950952
for (i = 0; i < nodesWithAnimationManagers.length; i++) {
951953
var innerNode = nodesWithAnimationManagers[i];

0 commit comments

Comments
 (0)