From ac1a2f7c7a53b861f14ba561c5e4a7215b7f9e2b Mon Sep 17 00:00:00 2001 From: JannisX11 Date: Fri, 24 Nov 2023 21:17:50 +0100 Subject: [PATCH] Allow moving layer when not clicking within selection --- js/texturing/uv.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/js/texturing/uv.js b/js/texturing/uv.js index dd3e0c18..36e5b3a9 100644 --- a/js/texturing/uv.js +++ b/js/texturing/uv.js @@ -3263,7 +3263,7 @@ Interface.definePanels(function() { let start_x, start_y, calcrect; let layer = texture.selected_layer; let create_selection = Toolbox.selected.id == 'selection_tool' - && !(op_mode == 'create' && settings.move_with_selection_tool.value && clicked_val) + && !(op_mode == 'create' && settings.move_with_selection_tool.value && (clicked_val || layer.in_limbo)) && !event.target.classList.contains('uv_layer_transform_handles'); let initial_offset = layer ? layer.offset.slice() : [0, 0]; @@ -3484,7 +3484,11 @@ Interface.definePanels(function() { } UVEditor.updateSelectionOutline(); Interface.addSuggestedModifierKey('alt', 'modifier_actions.drag_to_duplicate'); - } else { + } else if (!started_movement) { + if (TextureLayer.selected?.in_limbo) { + TextureLayer.selected.resolveLimbo(); + } + } { texture.updateLayerChanges(true); texture.saved = false; Undo.finishEdit('Move layer');