diff --git a/ui/media/js/image-editor.js b/ui/media/js/image-editor.js index aeb7115b..6f56c0f0 100644 --- a/ui/media/js/image-editor.js +++ b/ui/media/js/image-editor.js @@ -505,8 +505,10 @@ class ImageEditor { } setImage(url, width, height) { this.setSize(width, height) - this.layers.drawing.ctx.clearRect(0, 0, this.width, this.height) this.layers.background.ctx.clearRect(0, 0, this.width, this.height) + if (!(url && this.inpainter)) { + this.layers.drawing.ctx.clearRect(0, 0, this.width, this.height) + } if (url) { var image = new Image() image.onload = () => {