mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
Fixed sprite scaling history bug
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user