Explorar o código

Reset ruler tool when switching tools with shortcuts

Fixes: #37056
Dominik 'dreamsComeTrue' Jasiński %!s(int64=5) %!d(string=hai) anos
pai
achega
a99a671034
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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;
 	}