Added canvas preview to layer menu

Decided to apply the same width / height ratio of the canvas to the preview.
This commit is contained in:
unsettledgames
2020-06-19 15:16:22 +02:00
parent 066582e309
commit c498a495d5
5 changed files with 45 additions and 19 deletions

View File

@@ -13,6 +13,8 @@ function HistoryStateEditCanvas () {
this.canvas = currentCanvas;
redoStates.push(this);
currentLayer.updateLayerPreview();
};
this.redo = function () {
@@ -21,6 +23,8 @@ function HistoryStateEditCanvas () {
this.canvas = currentCanvas;
undoStates.push(this);
currentLayer.updateLayerPreview();
};
//add self to undo array