aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js')
-rw-r--r--js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
index c454130c..0ca4800d 100644
--- a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
+++ b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
@@ -747,6 +747,10 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
747 747
748 this.currentLayerNumber = this.currentLayerNumber + 1; 748 this.currentLayerNumber = this.currentLayerNumber + 1;
749 newLayerName = "Layer " + this.currentLayerNumber; 749 newLayerName = "Layer " + this.currentLayerNumber;
750
751 if(ele.dataset.storedLayerName){
752 newLayerName = ele.dataset.storedLayerName;
753 }
750 thingToPush.layerData.layerName = newLayerName; 754 thingToPush.layerData.layerName = newLayerName;
751 thingToPush.layerData.layerID = this.currentLayerNumber; 755 thingToPush.layerData.layerID = this.currentLayerNumber;
752 thingToPush.parentElementUUID = this.hashKey; 756 thingToPush.parentElementUUID = this.hashKey;
@@ -787,6 +791,7 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
787 value:function() { 791 value:function() {
788 this.createNewLayer(); 792 this.createNewLayer();
789 this.currentLayerSelected.layerData.elementsList.push(this.application.ninja.selectedElements[0]._element); 793 this.currentLayerSelected.layerData.elementsList.push(this.application.ninja.selectedElements[0]._element);
794 this.currentLayerSelected.layerData.elementsList[0].dataset.storedLayerName = this.currentLayerSelected.layerData.layerName;
790 } 795 }
791 }, 796 },
792 797