diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-03-15 08:15:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-15 08:15:07 +0100 |
commit | db0355cb0742dc88a15f0c8fe121069ca411649d (patch) | |
tree | 5c84910247bfe255d0d4259fb7580dbc9b7cf213 | |
parent | a4fd6d374c6a58247ba3d13855e8348fc0c76f3b (diff) | |
parent | a99a671034866be275bc08ba3d4009c3fb9d8cee (diff) |
Merge pull request #37065 from dreamsComeTrue/ruler-origin-fix
Reset ruler tool when switching tools with shortcuts
-rw-r--r-- | editor/plugins/canvas_item_editor_plugin.cpp | 1 |
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; } |