aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorJonathan Duran2012-04-16 09:58:19 -0700
committerJonathan Duran2012-04-16 09:58:19 -0700
commita2af3c8bd2349a24dd7de920381b04847a863a46 (patch)
tree10089354bef81e86477da4a40d8d0571759a5d0c /js
parent0e6e40a835a73ba04156d579f5a0c900a9b5c4eb (diff)
downloadninja-a2af3c8bd2349a24dd7de920381b04847a863a46.tar.gz
Fix tweens not updating keyframe rules
Signed-off-by: Jonathan Duran <jduran@motorola.com>
Diffstat (limited to 'js')
-rw-r--r--js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js3
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 },