summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorDominik 'dreamsComeTrue' Jasiński <dominikjasinski@o2.pl>2020-03-15 10:35:53 +0100
committerDominik 'dreamsComeTrue' Jasiński <dominikjasinski@o2.pl>2021-03-15 00:28:52 +0100
commita99a671034866be275bc08ba3d4009c3fb9d8cee (patch)
tree721c41908c90fae4f57fa751504ced93dc31ebf7 /editor
parentb060ca680a640904af7fd25b5aaa9f30f1182319 (diff)
Reset ruler tool when switching tools with shortcuts
Fixes: #37056
Diffstat (limited to 'editor')
-rw-r--r--editor/plugins/canvas_item_editor_plugin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/plugins/canvas_item_editor_plugin.cpp b/editor/plugins/canvas_item_editor_plugin.cpp
index bac6f3cd79..23467c8377 100644
--- a/editor/plugins/canvas_item_editor_plugin.cpp
+++ b/editor/plugins/canvas_item_editor_plugin.cpp
@@ -2622,6 +2622,7 @@ bool CanvasItemEditor::_gui_input_select(const Ref<InputEvent> &p_event) {
bool CanvasItemEditor::_gui_input_ruler_tool(const Ref<InputEvent> &p_event) {
if (tool != TOOL_RULER) {
+ ruler_tool_active = false;
return false;
}