diff options
author | Jon Reid | 2012-06-21 11:32:20 -0700 |
---|---|---|
committer | Jon Reid | 2012-06-21 11:32:20 -0700 |
commit | aabd9b98341308cd0d276e6e788b7a3f9531c394 (patch) | |
tree | 36a2f82d11a40ac2cda77f7f0d64dccfba4e7353 /js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js | |
parent | 782b66c783df4a9c36fa240cc77900e69b9130cf (diff) | |
download | ninja-aabd9b98341308cd0d276e6e788b7a3f9531c394.tar.gz |
Timeline: Bug Fix: Document switching was doubling position tracks.
Diffstat (limited to 'js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js')
-rw-r--r-- | js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js b/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js index bf380e00..3cf754b8 100644 --- a/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js +++ b/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js | |||
@@ -1051,6 +1051,11 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, { | |||
1051 | createPositionTracks:{ | 1051 | createPositionTracks:{ |
1052 | value:function(){ | 1052 | value:function(){ |
1053 | // create track objects for position and transform tracks and push into arrays | 1053 | // create track objects for position and transform tracks and push into arrays |
1054 | |||
1055 | // ... but only do it if we haven't already. | ||
1056 | if (this.arrPositionTracks.length > 0) { | ||
1057 | return; | ||
1058 | } | ||
1054 | 1059 | ||
1055 | // create 'left' track | 1060 | // create 'left' track |
1056 | var newLeftTrack = {}; | 1061 | var newLeftTrack = {}; |