Skip to content

Commit a38af81

Browse files
committed
Nested CCBFiles’s can have x != y scales.
Former-commit-id: 77ab6c8
1 parent 118936c commit a38af81

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cocos2d-ui/CCBReader/CCBReader.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,8 @@ - (CCNode*) readNodeGraphParent:(CCNode*)parent
883883
embeddedNode.positionType = ccbFileNode.positionType;
884884
//embeddedNode.anchorPoint = ccbFileNode.anchorPoint;
885885
embeddedNode.rotation = ccbFileNode.rotation;
886-
embeddedNode.scale = ccbFileNode.scale;
886+
embeddedNode.scaleX = ccbFileNode.scaleX;
887+
embeddedNode.scaleY = ccbFileNode.scaleY;
887888
embeddedNode.name = ccbFileNode.name;
888889
embeddedNode.visible = YES;
889890
//embeddedNode.ignoreAnchorPointForPosition = ccbFileNode.ignoreAnchorPointForPosition;

0 commit comments

Comments
 (0)