Found a bug

Noted a possible fix
This commit is contained in:
unsettledgames 2020-03-07 22:40:05 +01:00
parent 3e5b05bb6b
commit 9324a6a57e

View File

@ -18,6 +18,13 @@ function updateMovePreview(mouseEvent) {
}
function endSelection() {
// We have to make something smarter:
// Take the selected data
// Take the data underlying the selected data
// for every element in the selected data
// if the current pixel is empty
// copy the pixel in the selected data
TMPLayer.context.clearRect(0, 0, TMPLayer.canvas.width, TMPLayer.canvas.height);
VFXLayer.context.clearRect(0, 0, VFXLayer.canvas.width, VFXLayer.canvas.height);