Fixed sprite scaling history bug

This commit is contained in:
unsettledgames
2021-04-29 12:50:59 +02:00
parent 26aa1023c5
commit 6e483710f0
7 changed files with 7 additions and 19 deletions

View File

@ -116,8 +116,9 @@ function resizeSprite(event, ratio) {
}
}
// ratio is null when the user is undoing
if (ratio == null) {
// event is null when the user is undoing
if (event != null) {
console.log("AO SALVO LA CRONOLOGIA");
// Copying the image data
imageDatasCopy = rsImageDatas.slice();
// Saving the history