From 36ec71bcef88f34357deecc6b9ed4157415f8e16 Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Sat, 12 Mar 2022 14:37:20 +0800 Subject: [PATCH] Hide smart snapping line when guideline dragging ends (cherry picked from commit b255efba7cbcc3757d5489b63ae4bbe79db954f4) --- editor/plugins/canvas_item_editor_plugin.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editor/plugins/canvas_item_editor_plugin.cpp b/editor/plugins/canvas_item_editor_plugin.cpp index 57ac9ccdf0a..348704df741 100644 --- a/editor/plugins/canvas_item_editor_plugin.cpp +++ b/editor/plugins/canvas_item_editor_plugin.cpp @@ -1241,6 +1241,8 @@ bool CanvasItemEditor::_gui_input_rulers_and_guides(const Ref &p_eve } } } + snap_target[0] = SNAP_TARGET_NONE; + snap_target[1] = SNAP_TARGET_NONE; drag_type = DRAG_NONE; viewport->update(); return true;