mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Selection tool broken with previous commit. Fixed it. Need tests, cannot manually test all features.
This commit is contained in:
parent
ba6879875c
commit
741d145d42
@ -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();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user