Browse Source

Merge pull request #37065 from dreamsComeTrue/ruler-origin-fix

Reset ruler tool when switching tools with shortcuts
Rémi Verschelde 4 years ago
parent
commit
db0355cb07
1 changed files with 1 additions and 0 deletions
  1. 1 0
      editor/plugins/canvas_item_editor_plugin.cpp

+ 1 - 0
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;
 	}