diff options
Diffstat (limited to 'js')
-rw-r--r-- | js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js b/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js index ae6ff114..0bd4b674 100644 --- a/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js +++ b/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js | |||
@@ -739,19 +739,18 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, { | |||
739 | this.animatedElement = this.application.ninja.timeline.arrLayers[selectedIndex].layerData.stageElement; | 739 | this.animatedElement = this.application.ninja.timeline.arrLayers[selectedIndex].layerData.stageElement; |
740 | if(this.animatedElement!==undefined){ | 740 | if(this.animatedElement!==undefined){ |
741 | this.animationName = this.application.ninja.stylesController.getElementStyle(this.animatedElement, "-webkit-animation-name"); | 741 | this.animationName = this.application.ninja.stylesController.getElementStyle(this.animatedElement, "-webkit-animation-name"); |
742 | |||
743 | // check for multiple animation names | ||
744 | var animationNameList = this.animationName.split(","); | ||
745 | if(animationNameList.length > 1){ | ||
746 | this.animationNamesString = this.animationName; | ||
747 | this.animationName = animationNameList[0]; | ||
748 | this.getAllAnimationRules(animationNameList); | ||
749 | } else { | ||
750 | this.animationNamesString = this.animationName; | ||
751 | } | ||
752 | |||
753 | // build tweens for this tracks's keyframe rule | 742 | // build tweens for this tracks's keyframe rule |
754 | if(this.animationName){ | 743 | if(this.animationName){ |
744 | // check for multiple animation names | ||
745 | var animationNameList = this.animationName.split(","); | ||
746 | if (animationNameList.length > 1) { | ||
747 | this.animationNamesString = this.animationName; | ||
748 | this.animationName = animationNameList[0]; | ||
749 | this.getAllAnimationRules(animationNameList); | ||
750 | } else { | ||
751 | this.animationNamesString = this.animationName; | ||
752 | } | ||
753 | |||
755 | trackTiming = this.application.ninja.stylesController.getElementStyle(this.animatedElement, "-webkit-animation-duration"); | 754 | trackTiming = this.application.ninja.stylesController.getElementStyle(this.animatedElement, "-webkit-animation-duration"); |
756 | this.nextKeyframe = 0; | 755 | this.nextKeyframe = 0; |
757 | 756 | ||