File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -170,8 +170,8 @@ - (CCBSequence*)sequenceFromSequenceId:(int)seqId {
170
170
171
171
- (CCActionInterval*)actionFromKeyframe0 : (CCBKeyframe*)kf0 andKeyframe1 : (CCBKeyframe*)kf1 propertyName : (NSString *)name node : (CCNode*)node {
172
172
float duration = kf1.time - kf0.time ;
173
-
174
- if (kf0.easingType ==kCCBKeyframeEasingInstant ) {
173
+
174
+ if (kf0 && kf0 .easingType ==kCCBKeyframeEasingInstant ) {
175
175
duration = 0 ;
176
176
}
177
177
@@ -515,13 +515,13 @@ - (void)runAnimationsForSequenceId:(int)seqId tweenDuration:(float) tweenDuratio
515
515
}
516
516
}
517
517
}
518
-
518
+
519
519
}
520
520
521
521
522
522
}
523
523
524
- _paused = NO ;
524
+ _paused = NO ;
525
525
}
526
526
527
527
- (void )runAnimationsForSequenceNamed : (NSString *)name tweenDuration : (float )tweenDuration {
@@ -856,8 +856,8 @@ - (CCActionSequence*)createActionForNode:(CCNode*)node sequenceProperty:(CCBSequ
856
856
// Instant
857
857
if (startKF.easingType ==kCCBKeyframeEasingInstant ) {
858
858
[actions addObject: [CCActionDelay actionWithDuration: endKF.time-startKF.time]];
859
- }
860
-
859
+ }
860
+
861
861
// Apply Easing
862
862
action = [self easeAction: action easingType: startKF.easingType easingOpt: startKF.easingOpt];
863
863
[actions addObject: action];
You can’t perform that action at this time.
0 commit comments