Reset ruler tool when switching tools with shortcuts

Fixes: #37056
This commit is contained in:
Dominik 'dreamsComeTrue' Jasiński 2020-03-15 10:35:53 +01:00
parent b060ca680a
commit a99a671034

View file

@ -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;
}