diff options
Diffstat (limited to 'js')
-rw-r--r-- | js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js | 9 | ||||
-rw-r--r-- | js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js | 2 |
2 files changed, 9 insertions, 2 deletions
diff --git a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js index 1ddb3977..ce8174b0 100644 --- a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js +++ b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js | |||
@@ -1200,7 +1200,6 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, { | |||
1200 | 1200 | ||
1201 | // Select the layers, or clear the selection if none were found | 1201 | // Select the layers, or clear the selection if none were found |
1202 | if (arrSelectedElements.length > 0) { | 1202 | if (arrSelectedElements.length > 0) { |
1203 | console.log("TimelinePanel.updateStageSelection, ", arrSelectedElements) | ||
1204 | this.application.ninja.selectionController.selectElements(arrSelectedElements); | 1203 | this.application.ninja.selectionController.selectElements(arrSelectedElements); |
1205 | } else { | 1204 | } else { |
1206 | this.application.ninja.selectionController.executeSelectElement(); | 1205 | this.application.ninja.selectionController.executeSelectElement(); |
@@ -1641,6 +1640,13 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, { | |||
1641 | 1640 | ||
1642 | selectLayer:{ | 1641 | selectLayer:{ |
1643 | value:function (layerIndex, userSelection) { | 1642 | value:function (layerIndex, userSelection) { |
1643 | console.log("=----> Please update your component to use the new TimelinePanel.selectLayers method. <----="); | ||
1644 | this.selectLayers([layerIndex]); | ||
1645 | if (userSelection === true) { | ||
1646 | this.updateStageSelection(); | ||
1647 | } | ||
1648 | |||
1649 | /* | ||
1644 | 1650 | ||
1645 | console.log('TimelinePanel.selectLayer') | 1651 | console.log('TimelinePanel.selectLayer') |
1646 | 1652 | ||
@@ -1676,6 +1682,7 @@ console.log('TimelinePanel.selectLayer') | |||
1676 | this._captureSelection = true; | 1682 | this._captureSelection = true; |
1677 | } | 1683 | } |
1678 | this.resetMasterDuration(); | 1684 | this.resetMasterDuration(); |
1685 | */ | ||
1679 | } | 1686 | } |
1680 | }, | 1687 | }, |
1681 | 1688 | ||
diff --git a/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js b/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js index 0e430000..e4e90d51 100644 --- a/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js +++ b/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js | |||
@@ -644,7 +644,7 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, { | |||
644 | newTween.tweenData = {}; | 644 | newTween.tweenData = {}; |
645 | 645 | ||
646 | if (clickPos == 0) { | 646 | if (clickPos == 0) { |
647 | this.animatedElement = this.application.ninja.timeline.currentLayerSelected.layerData.stageElement; | 647 | this.animatedElement = this.application.ninja.timeline.arrLayers[this.application.ninja.timeline.currentLayersSelected[0]].layerData.stageElement; |
648 | newTween.tweenData.spanWidth = 0; | 648 | newTween.tweenData.spanWidth = 0; |
649 | newTween.tweenData.keyFramePosition = 0; | 649 | newTween.tweenData.keyFramePosition = 0; |
650 | newTween.tweenData.keyFrameMillisec = 0; | 650 | newTween.tweenData.keyFrameMillisec = 0; |