diff options
author | Jonathan Duran | 2012-02-06 18:38:26 -0800 |
---|---|---|
committer | Jonathan Duran | 2012-02-06 18:38:26 -0800 |
commit | ac75834c5e23a41d7e52304fb24610cafd7d7e09 (patch) | |
tree | 0fc298575b9265afd6a1c484ed5649f936bbf91a /js/panels | |
parent | b4dd3e269b9de188e015f4cfac29c70a684f4c4f (diff) | |
download | ninja-ac75834c5e23a41d7e52304fb24610cafd7d7e09.tar.gz |
Timeline: add new layers to top of stack instead of bottom.
Signed-off-by: Jonathan Duran <jduran@motorola.com>
Diffstat (limited to 'js/panels')
-rw-r--r-- | js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js | 4 |
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); |