diff options
author | Valerio Virgillito | 2012-06-27 14:45:11 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-06-27 14:45:11 -0700 |
commit | 07e7e2f28b863b0a4d139cc7e649a630b162e0da (patch) | |
tree | 649f371e6c4f54284fe488e3c370e7f1a8ac90fc /js/panels/Timeline/Keyframe.reel | |
parent | 6b80467233e05a56dcb2d6952bd7044fd826e8d3 (diff) | |
parent | 338d3fdadf3a4b758e855dd48b325ed3099443ea (diff) | |
download | ninja-07e7e2f28b863b0a4d139cc7e649a630b162e0da.tar.gz |
Merge pull request #342 from imix23ways/Timeline-pullrequest
Timeline Bugfixes
Diffstat (limited to 'js/panels/Timeline/Keyframe.reel')
-rw-r--r-- | js/panels/Timeline/Keyframe.reel/Keyframe.js | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/js/panels/Timeline/Keyframe.reel/Keyframe.js b/js/panels/Timeline/Keyframe.reel/Keyframe.js index ba6952aa..f7c936f7 100644 --- a/js/panels/Timeline/Keyframe.reel/Keyframe.js +++ b/js/panels/Timeline/Keyframe.reel/Keyframe.js | |||
@@ -76,9 +76,20 @@ var Keyframe = exports.Keyframe = Montage.create(Component, { | |||
76 | 76 | ||
77 | selectKeyframe:{ | 77 | selectKeyframe:{ |
78 | value:function(){ | 78 | value:function(){ |
79 | if(this.isSelected){ | ||
80 | return; | ||
81 | } | ||
82 | |||
83 | if(this.parentComponent.parentComponent.parentComponent.trackType == "position"){ | ||
84 | var tweenID = this.parentComponent.tweenID; | ||
85 | var mainTrack = this.parentComponent.parentComponent.parentComponent.parentComponent.parentComponent.parentComponent.parentComponent; | ||
86 | mainTrack.childComponents[0].childComponents[tweenID].childComponents[0].selectKeyframe(); | ||
87 | return; | ||
88 | } | ||
89 | |||
79 | this.isSelected=true; | 90 | this.isSelected=true; |
80 | this.element.style.left = (this.position - 6) + "px"; | 91 | this.element.style.left = (this.position - 6) + "px"; |
81 | this.application.ninja.timeline.selectedStyle = this.parentComponent.parentComponent.parentComponent.trackEditorProperty | 92 | this.application.ninja.timeline.selectedStyle = this.parentComponent.parentComponent.parentComponent.trackEditorProperty; |
82 | this.parentComponent.selectTween(); | 93 | this.parentComponent.selectTween(); |
83 | } | 94 | } |
84 | }, | 95 | }, |