aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Timeline/Tween.reel/Tween.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/panels/Timeline/Tween.reel/Tween.js')
-rw-r--r--js/panels/Timeline/Tween.reel/Tween.js8
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 }