diff options
Diffstat (limited to 'js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js')
-rw-r--r-- | js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js b/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js index fddfd170..67dbbced 100644 --- a/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js +++ b/js/panels/Timeline/TimelineTrack.reel/TimelineTrack.js | |||
@@ -358,10 +358,12 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, { | |||
358 | 358 | ||
359 | didDraw:{ | 359 | didDraw:{ |
360 | value:function () { | 360 | value:function () { |
361 | if (this._openDocRedrawCheck) { | 361 | if(this.application.ninja.currentDocument.documentRoot.children[0]){ |
362 | this.retrieveStoredTweens(); | 362 | if (this._openDocRedrawCheck) { |
363 | this._openDocRedrawCheck = false; | 363 | this.retrieveStoredTweens(); |
364 | } | 364 | this._openDocRedrawCheck = false; |
365 | } | ||
366 | } | ||
365 | } | 367 | } |
366 | }, | 368 | }, |
367 | 369 | ||
@@ -542,7 +544,7 @@ var TimelineTrack = exports.TimelineTrack = Montage.create(Component, { | |||
542 | value:function () { | 544 | value:function () { |
543 | var that = this; | 545 | var that = this; |
544 | 546 | ||
545 | this.arrPositionTracks = [0, 1, 2]; | 547 | this.arrPositionTracks = [0, 1]; |
546 | this.arrTransformTracks = [0, 1, 2, 3, 4]; | 548 | this.arrTransformTracks = [0, 1, 2, 3, 4]; |
547 | 549 | ||
548 | this.label = this.element.querySelector(".label-main"); | 550 | this.label = this.element.querySelector(".label-main"); |