Skip to content

Commit 5f68099

Browse files
committed
Opacity KeyFrame not using float values spritebuilder/SpriteBuilder#658
1 parent a696415 commit 5f68099

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cocos2d-ui/CCBReader/CCAnimationManager.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ - (CCActionInterval*)actionFromKeyframe0:(CCBKeyframe*)kf0 andKeyframe1:(CCBKeyf
201201
} else if ([name isEqualToString:@"rotationalSkewY"]) {
202202
return [CCActionRotateTo actionWithDuration:duration angleY:[kf1.value floatValue]];
203203
} else if ([name isEqualToString:@"opacity"]) {
204-
return [CCActionFadeTo actionWithDuration:duration opacity:[kf1.value intValue]];
204+
return [CCActionFadeTo actionWithDuration:duration opacity:[kf1.value floatValue]];
205205
} else if ([name isEqualToString:@"color"]) {
206206
CCColor* color = kf1.value;
207207
return [CCActionTintTo actionWithDuration:duration color:color];

0 commit comments

Comments
 (0)