Skip to content

Commit 2707bd9

Browse files
committed
Adds SpriteBuilder support for rotational skew
Former-commit-id: 3d3e930
1 parent 3a4f5ae commit 2707bd9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cocos2d-ui/CCBReader/CCBAnimationManager.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,11 @@ - (CCActionInterval*) actionFromKeyframe0:(CCBKeyframe*)kf0 andKeyframe1:(CCBKey
147147
{
148148
return [CCBRotateTo actionWithDuration:duration angle:[kf1.value floatValue]];
149149
}
150-
else if ([name isEqualToString:@"rotationX"])
150+
else if ([name isEqualToString:@"rotationalSkewX"])
151151
{
152152
return [CCBRotateXTo actionWithDuration:duration angle:[kf1.value floatValue]];
153153
}
154-
else if ([name isEqualToString:@"rotationY"])
154+
else if ([name isEqualToString:@"rotationalSkewY"])
155155
{
156156
return [CCBRotateYTo actionWithDuration:duration angle:[kf1.value floatValue]];
157157
}

cocos2d/CCNode.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ -(float) rotation
236236
if(body){
237237
return -CC_RADIANS_TO_DEGREES(body.absoluteRadians) + NodeToPhysicsRotation(self.parent);
238238
} else {
239-
NSAssert( _rotationalSkewX == _rotationalSkewY, @"CCNode#rotation. RotationX != RotationY. Don't know which one to return");
239+
NSAssert( _rotationalSkewX == _rotationalSkewY, @"CCNode#rotation. rotationalSkewX != rotationalSkewY. Don't know which one to return");
240240
return _rotationalSkewX;
241241
}
242242
}

0 commit comments

Comments
 (0)