Fix bug where redrawing after undo'ing kept old history.
This commit is contained in:
parent
429e006e05
commit
d34b4f8347
@ -171,7 +171,7 @@ document.addEventListener("DOMContentLoaded",()=>{
|
||||
//console.log(changedPixels);
|
||||
if ("STEPTYPE" in changedPixels) {
|
||||
//Add changedPixels to the current pixelState.
|
||||
if (currentPixelState!==-1 && currentPixelState!==pixelStates.length-1) {
|
||||
if (currentPixelState!==-1 && currentPixelState!==pixelStates.length) {
|
||||
//Delete everything after this.
|
||||
if (currentPixelState===0) {
|
||||
pixelStates = [];
|
||||
|
Loading…
x
Reference in New Issue
Block a user