Skip to content

Commit 10f62c6

Browse files
committed
Fixed cocos2d#1615 Fix a bug of cc.BuilderReader
1 parent 076d28f commit 10f62c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/CCBReader/CCBReader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,7 @@ cc.BuilderReader.load = function (ccbFilePath, owner, parentSize, ccbRootPath) {
946946

947947
var nodesWithAnimationManagers = reader.getNodesWithAnimationManagers();
948948
var animationManagersForNodes = reader.getAnimationManagersForNodes();
949-
if(nodesWithAnimationManagers || animationManagersForNodes)
949+
if(!nodesWithAnimationManagers || !animationManagersForNodes)
950950
return node;
951951
// Attach animation managers to nodes and assign root node callbacks and member variables
952952
for (i = 0; i < nodesWithAnimationManagers.length; i++) {

0 commit comments

Comments
 (0)