aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Duran2012-02-06 18:38:26 -0800
committerJonathan Duran2012-02-06 18:38:26 -0800
commitac75834c5e23a41d7e52304fb24610cafd7d7e09 (patch)
tree0fc298575b9265afd6a1c484ed5649f936bbf91a
parentb4dd3e269b9de188e015f4cfac29c70a684f4c4f (diff)
downloadninja-ac75834c5e23a41d7e52304fb24610cafd7d7e09.tar.gz
Timeline: add new layers to top of stack instead of bottom.
Signed-off-by: Jonathan Duran <jduran@motorola.com>
-rw-r--r--js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
index 2db0c18a..a0e2376a 100644
--- a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
+++ b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
@@ -314,8 +314,8 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
314 this.arrTracks.splice(myIndex, 0, newTrack); 314 this.arrTracks.splice(myIndex, 0, newTrack);
315 this.layerRepetition.selectedIndexes = [myIndex]; 315 this.layerRepetition.selectedIndexes = [myIndex];
316 } else { 316 } else {
317 this.arrLayers.push(thingToPush); 317 this.arrLayers.splice(0, 0, thingToPush);
318 this.arrTracks.push(newTrack); 318 this.arrTracks.splice(0, 0, newTrack);
319 thingToPush.layerPosition=this.arrLayers.length-1; 319 thingToPush.layerPosition=this.arrLayers.length-1;
320 newTrack.trackPosition=this.arrTracks.length-1; 320 newTrack.trackPosition=this.arrTracks.length-1;
321 this.hashInstance.setItem(this._hashKey,thingToPush,thingToPush.layerPosition); 321 this.hashInstance.setItem(this._hashKey,thingToPush,thingToPush.layerPosition);