diff options
author | Jon Reid | 2012-07-03 15:47:50 -0700 |
---|---|---|
committer | Jon Reid | 2012-07-03 15:47:50 -0700 |
commit | 8c087f7c13a2bd72e1640e99e339a74fc2250901 (patch) | |
tree | 1e69a65489e240bb7eab3a857c4acd7429f54f79 /js/panels/Timeline/PropertyTrack.reel/PropertyTrack.js | |
parent | 539f430f95812e726ad14012965ece942a010bca (diff) | |
download | ninja-8c087f7c13a2bd72e1640e99e339a74fc2250901.tar.gz |
Timeline: First pass at cleaning up TimelineTrack code. Changes propagated
to PropertyTrack, TimelineTrack, and Tween classes.
Diffstat (limited to 'js/panels/Timeline/PropertyTrack.reel/PropertyTrack.js')
-rw-r--r-- | js/panels/Timeline/PropertyTrack.reel/PropertyTrack.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/js/panels/Timeline/PropertyTrack.reel/PropertyTrack.js b/js/panels/Timeline/PropertyTrack.reel/PropertyTrack.js index c4571e9d..5c674c27 100644 --- a/js/panels/Timeline/PropertyTrack.reel/PropertyTrack.js +++ b/js/panels/Timeline/PropertyTrack.reel/PropertyTrack.js | |||
@@ -244,7 +244,9 @@ var PropertyTrack = exports.PropertyTrack = Montage.create(Component, { | |||
244 | insertPropTween:{ | 244 | insertPropTween:{ |
245 | value:function(clickPos){ | 245 | value:function(clickPos){ |
246 | var selectedIndex = this.application.ninja.timeline.getLayerIndexByID(this.trackID); | 246 | var selectedIndex = this.application.ninja.timeline.getLayerIndexByID(this.trackID); |
247 | this.application.ninja.timeline.selectLayer(selectedIndex, true); | 247 | // this.application.ninja.timeline.selectLayer(selectedIndex, true); // Deprecated. |
248 | this.application.ninja.timeline.selectLayers([selectedIndex]); | ||
249 | this.application.ninja.timeline.updateStageSelection(); | ||
248 | 250 | ||
249 | var currentMillisecPerPixel = Math.floor(this.application.ninja.timeline.millisecondsOffset / 80); | 251 | var currentMillisecPerPixel = Math.floor(this.application.ninja.timeline.millisecondsOffset / 80); |
250 | var currentMillisec = currentMillisecPerPixel * clickPos; | 252 | var currentMillisec = currentMillisecPerPixel * clickPos; |