From a6675542510744904e6013b53bd29d92ae28195b Mon Sep 17 00:00:00 2001 From: JannisX11 Date: Wed, 1 Feb 2023 18:21:21 +0100 Subject: [PATCH] Fix #1731 Canceling copy-paste tool moving does not reset texture correctly --- js/texturing/uv.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/texturing/uv.js b/js/texturing/uv.js index ed753187..7f8d18f7 100644 --- a/js/texturing/uv.js +++ b/js/texturing/uv.js @@ -240,7 +240,10 @@ const UVEditor = { } }, hide() { - scope.removePastingOverlay() + scope.removePastingOverlay(); + if (Painter.selection.move_mode) { + Undo.cancelEdit(); + } } } overlay.append(Painter.selection.canvas)