diff options
author | Haoyu Qiu <timothyqiu32@gmail.com> | 2022-03-12 14:37:20 +0800 |
---|---|---|
committer | Haoyu Qiu <timothyqiu32@gmail.com> | 2022-03-12 14:37:20 +0800 |
commit | b255efba7cbcc3757d5489b63ae4bbe79db954f4 (patch) | |
tree | 953bc72ba919a06f27c97629b9c1d98e39666ff1 /editor/plugins | |
parent | d5076439e44e6eab5732e1d2fc0f30bb6f34e5f9 (diff) |
Hide smart snapping line when guideline dragging ends
Diffstat (limited to 'editor/plugins')
-rw-r--r-- | editor/plugins/canvas_item_editor_plugin.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/plugins/canvas_item_editor_plugin.cpp b/editor/plugins/canvas_item_editor_plugin.cpp index 75f97efdbc..4ee4eb86af 100644 --- a/editor/plugins/canvas_item_editor_plugin.cpp +++ b/editor/plugins/canvas_item_editor_plugin.cpp @@ -1139,6 +1139,8 @@ bool CanvasItemEditor::_gui_input_rulers_and_guides(const Ref<InputEvent> &p_eve } } } + snap_target[0] = SNAP_TARGET_NONE; + snap_target[1] = SNAP_TARGET_NONE; drag_type = DRAG_NONE; viewport->update(); return true; |