aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Timeline/TimelinePanel.reel
diff options
context:
space:
mode:
Diffstat (limited to 'js/panels/Timeline/TimelinePanel.reel')
-rw-r--r--js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
index f942f36e..52b63376 100644
--- a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
+++ b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
@@ -725,6 +725,8 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
725 // use layerIndex = "none" to deselect all layers. 725 // use layerIndex = "none" to deselect all layers.
726 var i = 0, 726 var i = 0,
727 arrLayersLength = this.arrLayers.length; 727 arrLayersLength = this.arrLayers.length;
728
729 // First, update this.arrLayers[].isSelected
728 for (i = 0; i < arrLayersLength; i++) { 730 for (i = 0; i < arrLayersLength; i++) {
729 if (i === layerIndex) { 731 if (i === layerIndex) {
730 this.arrLayers[i].isSelected = true; 732 this.arrLayers[i].isSelected = true;
@@ -733,6 +735,7 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
733 } 735 }
734 } 736 }
735 737
738 // Next, update this.layerRepetition.selectedIndexes and this.currentLayerSelected.
736 if (layerIndex !== "none") { 739 if (layerIndex !== "none") {
737 this.layerRepetition.selectedIndexes = [layerIndex]; 740 this.layerRepetition.selectedIndexes = [layerIndex];
738 this.currentLayerSelected = this.arrLayers[layerIndex] 741 this.currentLayerSelected = this.arrLayers[layerIndex]