summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2022-03-12 13:12:00 +0100
committerGitHub <noreply@github.com>2022-03-12 13:12:00 +0100
commitf5dc2129a0551d1e4e215b31d849daf22e228c96 (patch)
tree7b98fb0ae11ecba06e0fbf51a6d6d01541578fd5
parentc591ebf0127296f0a2c571d2ed18ae6619da2a76 (diff)
parentb255efba7cbcc3757d5489b63ae4bbe79db954f4 (diff)
Merge pull request #59057 from timothyqiu/smart-guide
-rw-r--r--editor/plugins/canvas_item_editor_plugin.cpp2
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;