diff options
author | Jon Reid | 2012-05-30 09:35:56 -0700 |
---|---|---|
committer | Jon Reid | 2012-05-30 09:35:56 -0700 |
commit | 9253e2ce98d748edd8c3929f113a597923960387 (patch) | |
tree | 061c47f4df587ef0dde2a63f7395299c5c91747c /js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js | |
parent | d901a7539cdde3e02c8dc98b3c35e2c58b6f1abe (diff) | |
parent | 41754c04c5c5f3c372dc2b38a122144f8d9e1d18 (diff) | |
download | ninja-9253e2ce98d748edd8c3929f113a597923960387.tar.gz |
Merge remote-tracking branch 'ninja-jduran/TimelineUber' into timeline-local
Diffstat (limited to 'js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js')
-rw-r--r-- | js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js b/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js index 835fc785..075290c7 100644 --- a/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js +++ b/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js | |||
@@ -820,12 +820,14 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, { | |||
820 | 820 | ||
821 | getAllAnimationRules:{ | 821 | getAllAnimationRules:{ |
822 | value:function(ruleNames){ | 822 | value:function(ruleNames){ |
823 | ruleNames.splice(0,1); // temp remove first animation already retrieved for main track | ||
823 | 824 | ||
824 | for(var i in ruleNames){ | 825 | for(var i in ruleNames){ |
825 | var currentName = ruleNames[i].replace(/^\s+|\s+$/g,""); // trim whitespace | 826 | var currentName = ruleNames[i].replace(/^\s+|\s+$/g,""); // trim whitespace |
826 | var currentRule = this.application.ninja.stylesController.getAnimationRuleWithName(currentName, this.application.ninja.currentDocument._document); | 827 | var currentRule = this.application.ninja.stylesController.getAnimationRuleWithName(currentName, this.application.ninja.currentDocument._document); |
827 | this.ruleList[currentName] = currentRule; | 828 | this.ruleList[currentName] = currentRule; |
828 | } | 829 | } |
830 | |||
829 | this.recreatePropertyTracks(this.ruleList); | 831 | this.recreatePropertyTracks(this.ruleList); |
830 | } | 832 | } |
831 | }, | 833 | }, |
@@ -833,8 +835,10 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, { | |||
833 | recreatePropertyTracks:{ | 835 | recreatePropertyTracks:{ |
834 | value:function(ruleSet){ | 836 | value:function(ruleSet){ |
835 | 837 | ||
838 | |||
836 | for(var i in ruleSet){ | 839 | for(var i in ruleSet){ |
837 | var styleProp = ruleSet[i][0].style[0]; | 840 | var styleProp = ruleSet[i][0].style[0]; |
841 | console.log(styleProp); | ||
838 | this.application.ninja.timeline.layerRepetition.childComponents[0].addStyle(styleProp); | 842 | this.application.ninja.timeline.layerRepetition.childComponents[0].addStyle(styleProp); |
839 | } | 843 | } |
840 | 844 | ||