File tree Expand file tree Collapse file tree 1 file changed +6
-14
lines changed Expand file tree Collapse file tree 1 file changed +6
-14
lines changed Original file line number Diff line number Diff line change @@ -469,6 +469,11 @@ - (void)runAnimationsForSequenceId:(int)seqId tweenDuration:(float) tweenDuratio
469
469
_paused = YES ;
470
470
[self clearAllActions ];
471
471
472
+ // Set the running scene
473
+ _runningSequence = [self sequenceFromSequenceId: seqId];
474
+ _runningSequence.time = 0 .0f ;
475
+ _runningSequence.tween = tweenDuration;
476
+
472
477
[self addSequenceCallBacks: seqId tweenDuration: tweenDuration startTime: 0 ];
473
478
474
479
// Contains all Sequence Propertys / Keyframe
@@ -510,25 +515,12 @@ - (void)runAnimationsForSequenceId:(int)seqId tweenDuration:(float) tweenDuratio
510
515
}
511
516
}
512
517
}
513
-
514
- // Reset nodes that have sequence node properties, build first keyframe action sequence.
515
- for (NSString * propName in seqNodeProps) {
516
- CCBSequenceProperty* seqProp = [seqNodeProps objectForKey: propName];
517
- [seqNodePropNames addObject: propName];
518
-
519
- // Reset Node State to First KeyFrame
520
- [self setKeyFrameForNode: node sequenceProperty: seqProp tweenDuration: tweenDuration keyFrame: 0 ];
521
-
522
- }
518
+
523
519
}
524
520
525
521
526
522
}
527
523
528
- // Set the running scene
529
- _runningSequence = [self sequenceFromSequenceId: seqId];
530
- _runningSequence.time = 0 .0f ;
531
-
532
524
_paused = NO ;
533
525
}
534
526
You can’t perform that action at this time.
0 commit comments