From a2af3c8bd2349a24dd7de920381b04847a863a46 Mon Sep 17 00:00:00 2001 From: Jonathan Duran Date: Mon, 16 Apr 2012 09:58:19 -0700 Subject: Fix tweens not updating keyframe rules Signed-off-by: Jonathan Duran --- js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'js/panels/Timeline') 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, { if (this.tweens.length < 1) { this.insertTween(0); this.addAnimationRuleToElement(ev); + this.updateKeyframeRule(); } else { this.handleNewTween(ev); + this.updateKeyframeRule(); } } else { console.log("There must be exactly one element in an animated layer."); @@ -588,6 +590,7 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, { this.ninjaStylesContoller.setElementStyle(this.animatedElement, "-webkit-animation-duration", animationDuration); this.nextKeyframe += 1; } + this.application.ninja.documentController.activeDocument.needsSave = true; } }, -- cgit v1.2.3