diff options
author | Kruti Shah | 2012-07-16 16:28:57 -0700 |
---|---|---|
committer | Kruti Shah | 2012-07-16 16:28:57 -0700 |
commit | 7e2c2dbd040ed79a3f0678f91bd4b6db9cf69231 (patch) | |
tree | a1c0985f584273990dcacdfaf9aeaddeb583d0b1 /js/panels/Timeline/Tween.reel/Tween.js | |
parent | cdcc677c827b65e3c689d4207c0117f94e4d6d57 (diff) | |
parent | 33e54da07d024ece1d52041d4ed2bcc28b8cbca3 (diff) | |
download | ninja-7e2c2dbd040ed79a3f0678f91bd4b6db9cf69231.tar.gz |
Merge branch 'refs/heads/TimelineUberJD' into Timeline-local-kruti
Diffstat (limited to 'js/panels/Timeline/Tween.reel/Tween.js')
-rw-r--r-- | js/panels/Timeline/Tween.reel/Tween.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/js/panels/Timeline/Tween.reel/Tween.js b/js/panels/Timeline/Tween.reel/Tween.js index 85fdfdc9..d41ad74f 100644 --- a/js/panels/Timeline/Tween.reel/Tween.js +++ b/js/panels/Timeline/Tween.reel/Tween.js | |||
@@ -229,7 +229,13 @@ var Tween = exports.Tween = Montage.create(Component, { | |||
229 | prepareForDraw:{ | 229 | prepareForDraw:{ |
230 | value:function(){ | 230 | value:function(){ |
231 | if(this.initSelect){ | 231 | if(this.initSelect){ |
232 | this.keyframe.selectKeyframe(); | 232 | // Select our new keyframe only if our parent is a main track. |
233 | // TODO: When we decouple all property tracks, this will go away. | ||
234 | if (typeof(this.parentComponent.parentComponent.trackType) === "undefined") { | ||
235 | if (this.tweenID > 0) { | ||
236 | this.keyframe.selectKeyframe(); | ||
237 | } | ||
238 | } | ||
233 | this.initSelect = false; | 239 | this.initSelect = false; |
234 | } | 240 | } |
235 | } | 241 | } |