aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js
diff options
context:
space:
mode:
authorJonathan Duran2012-07-09 09:00:37 -0700
committerJonathan Duran2012-07-09 09:00:37 -0700
commit39aa69624e1e3b8598b0242ee6ec436862b67280 (patch)
tree252ba58a3f2bb9600262c48571cc3dabaee36449 /js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js
parentf20b1985dd672d36db1dc61fa30c53d9af6aacef (diff)
parent8c087f7c13a2bd72e1640e99e339a74fc2250901 (diff)
downloadninja-39aa69624e1e3b8598b0242ee6ec436862b67280.tar.gz
Merge branch 'refs/heads/timeline-local' into TimelineUber
Conflicts: js/panels/Timeline/Layer.reel/Layer.js js/panels/Timeline/Style.reel/Style.js js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js Signed-off-by: Jonathan Duran <jduran@motorola.com>
Diffstat (limited to 'js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js')
-rw-r--r--js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js b/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js
index 9a67c969..f443553c 100644
--- a/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js
+++ b/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js
@@ -643,7 +643,9 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, {
643 this.application.ninja.timeline.updateTimeText(currentMillisec); 643 this.application.ninja.timeline.updateTimeText(currentMillisec);
644 if (ev.shiftKey) { 644 if (ev.shiftKey) {
645 var selectedIndex = this.application.ninja.timeline.getLayerIndexByID(this.trackID); 645 var selectedIndex = this.application.ninja.timeline.getLayerIndexByID(this.trackID);
646 this.application.ninja.timeline.selectLayer(selectedIndex, true); 646 // this.application.ninja.timeline.selectLayer(selectedIndex, true); // deprecated
647 this.application.ninja.timeline.selectLayers([selectedIndex]);
648 this.application.ninja.timeine.updateStageSelection();
647 if (this.tweens.length < 1) { 649 if (this.tweens.length < 1) {
648 this.insertTween(0); 650 this.insertTween(0);
649 this.addAnimationRuleToElement(ev); 651 this.addAnimationRuleToElement(ev);
@@ -742,7 +744,8 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, {
742 value:function (ev) { 744 value:function (ev) {
743 if (ev.offsetX > this.tweens[this.tweens.length - 1].tweenData.keyFramePosition) { 745 if (ev.offsetX > this.tweens[this.tweens.length - 1].tweenData.keyFramePosition) {
744 var selectedIndex = this.application.ninja.timeline.getLayerIndexByID(this.trackID); 746 var selectedIndex = this.application.ninja.timeline.getLayerIndexByID(this.trackID);
745 this.application.ninja.timeline.selectLayer(selectedIndex, false); 747 // this.application.ninja.timeline.selectLayer(selectedIndex, false); // deprecated
748 this.application.ninja.timeline.selectLayers([selectedIndex]);
746 this.insertTween(ev.offsetX); 749 this.insertTween(ev.offsetX);
747 } else { 750 } else {
748 if (typeof(ev.currentTarget) === "undefined") { 751 if (typeof(ev.currentTarget) === "undefined") {