diff options
Diffstat (limited to 'js/panels/Timeline/TimelinePanel.reel')
-rw-r--r-- | js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js index 8c3b64eb..d782e96d 100644 --- a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js +++ b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js | |||
@@ -829,6 +829,14 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, { | |||
829 | 829 | ||
830 | this.currentLayerNumber = this.currentLayerNumber + 1; | 830 | this.currentLayerNumber = this.currentLayerNumber + 1; |
831 | newLayerName = "Layer " + this.currentLayerNumber; | 831 | newLayerName = "Layer " + this.currentLayerNumber; |
832 | |||
833 | for(k = 0; k < arrLayersLength; k++){ | ||
834 | if(this.arrLayers[k].layerData.layerName === newLayerName){ | ||
835 | this.currentLayerNumber = this.currentLayerNumber + 1; | ||
836 | newLayerName = "Layer " + this.currentLayerNumber; | ||
837 | break; | ||
838 | } | ||
839 | } | ||
832 | thingToPush.layerData.layerName = newLayerName; | 840 | thingToPush.layerData.layerName = newLayerName; |
833 | thingToPush.layerData.layerTag = "<" + object.nodeName.toLowerCase() + ">"; | 841 | thingToPush.layerData.layerTag = "<" + object.nodeName.toLowerCase() + ">"; |
834 | thingToPush.layerData.layerID = this.currentLayerNumber; | 842 | thingToPush.layerData.layerID = this.currentLayerNumber; |