diff options
Diffstat (limited to 'js/panels/Timeline/TimelineTrack.reel')
-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 | ||