diff options
Diffstat (limited to 'js/panels/Timeline')
-rw-r--r-- | js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js b/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js index 87fd8282..25452891 100644 --- a/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js +++ b/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js | |||
@@ -533,8 +533,10 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, { | |||
533 | if (this.tweens.length < 1) { | 533 | if (this.tweens.length < 1) { |
534 | this.insertTween(0); | 534 | this.insertTween(0); |
535 | this.addAnimationRuleToElement(ev); | 535 | this.addAnimationRuleToElement(ev); |
536 | this.updateKeyframeRule(); | ||
536 | } else { | 537 | } else { |
537 | this.handleNewTween(ev); | 538 | this.handleNewTween(ev); |
539 | this.updateKeyframeRule(); | ||
538 | } | 540 | } |
539 | } else { | 541 | } else { |
540 | console.log("There must be exactly one element in an animated layer."); | 542 | console.log("There must be exactly one element in an animated layer."); |
@@ -588,6 +590,7 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, { | |||
588 | this.ninjaStylesContoller.setElementStyle(this.animatedElement, "-webkit-animation-duration", animationDuration); | 590 | this.ninjaStylesContoller.setElementStyle(this.animatedElement, "-webkit-animation-duration", animationDuration); |
589 | this.nextKeyframe += 1; | 591 | this.nextKeyframe += 1; |
590 | } | 592 | } |
593 | |||
591 | this.application.ninja.documentController.activeDocument.needsSave = true; | 594 | this.application.ninja.documentController.activeDocument.needsSave = true; |
592 | } | 595 | } |
593 | }, | 596 | }, |