@@ -171,10 +171,6 @@ - (CCBSequence*)sequenceFromSequenceId:(int)seqId {
171
171
- (CCActionInterval*)actionFromKeyframe0 : (CCBKeyframe*)kf0 andKeyframe1 : (CCBKeyframe*)kf1 propertyName : (NSString *)name node : (CCNode*)node {
172
172
float duration = kf1.time - kf0.time ;
173
173
174
- if (kf0.easingType ==kCCBKeyframeEasingInstant ) {
175
- duration = 0 ;
176
- }
177
-
178
174
if ([name isEqualToString: @" rotation" ]) {
179
175
return [CCActionRotateTo actionWithDuration: duration angle: [kf1.value floatValue ] simple: YES ];
180
176
} else if ([name isEqualToString: @" position" ]) {
@@ -360,7 +356,7 @@ - (void)runActionsForNode:(CCNode*)node sequenceProperty:(CCBSequenceProperty*)s
360
356
if (numKeyframes<1 ) return ;
361
357
362
358
// Action Sequence Builder
363
- NSMutableArray * actions = [NSMutableArray array ];
359
+ NSMutableArray * actions = [NSMutableArray array ];
364
360
int endFrame = startFrame+1 ;
365
361
366
362
if (endFrame==numKeyframes || endFrame<0 )
@@ -515,13 +511,13 @@ - (void)runAnimationsForSequenceId:(int)seqId tweenDuration:(float) tweenDuratio
515
511
}
516
512
}
517
513
}
518
-
514
+
519
515
}
520
516
521
517
522
518
}
523
519
524
- _paused = NO ;
520
+ _paused = NO ;
525
521
}
526
522
527
523
- (void )runAnimationsForSequenceNamed : (NSString *)name tweenDuration : (float )tweenDuration {
@@ -856,8 +852,8 @@ - (CCActionSequence*)createActionForNode:(CCNode*)node sequenceProperty:(CCBSequ
856
852
// Instant
857
853
if (startKF.easingType ==kCCBKeyframeEasingInstant ) {
858
854
[actions addObject: [CCActionDelay actionWithDuration: endKF.time-startKF.time]];
859
- }
860
-
855
+ }
856
+
861
857
// Apply Easing
862
858
action = [self easeAction: action easingType: startKF.easingType easingOpt: startKF.easingOpt];
863
859
[actions addObject: action];
0 commit comments