Selection tool broken with previous commit. Fixed it. Need tests, cannot manually test all features.

This commit is contained in:
juliandescottes 2012-09-14 01:11:24 +02:00
parent ba6879875c
commit 741d145d42

View File

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