We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48b60fa commit 856277cCopy full SHA for 856277c
cocos2d-ui/CCBReader/CCAnimationManager.m
@@ -170,6 +170,10 @@ - (CCBSequence*)sequenceFromSequenceId:(int)seqId {
170
171
- (CCActionInterval*)actionFromKeyframe0:(CCBKeyframe*)kf0 andKeyframe1:(CCBKeyframe*)kf1 propertyName:(NSString*)name node:(CCNode*)node {
172
float duration = kf1.time - kf0.time;
173
+
174
+ if(kf0 && kf0.easingType==kCCBKeyframeEasingInstant) {
175
+ duration = 0;
176
+ }
177
178
if ([name isEqualToString:@"rotation"]) {
179
return [CCActionRotateTo actionWithDuration:duration angle:[kf1.value floatValue] simple:YES];
0 commit comments