diff --git a/js/piskel.js b/js/piskel.js index 3bc7ba6a..5738dd11 100644 --- a/js/piskel.js +++ b/js/piskel.js @@ -31,7 +31,6 @@ $.namespace("pskl"); init : function () { frameSheet = new pskl.model.FrameSheet(framePixelWidth, framePixelHeight); frameSheet.addEmptyFrame(); - frameSheet.setCurrentFrameIndex(0); this.drawingController = new pskl.controller.DrawingController( frameSheet, @@ -61,6 +60,9 @@ $.namespace("pskl"); this.selectionManager = new pskl.selection.SelectionManager(this.drawingController.overlayFrame); + // DO NOT MOVE THIS LINE (see comment above) + frameSheet.setCurrentFrameIndex(0); + this.animationController.init(); this.previewsController.init();