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

Reset ruler tool when switching tools with shortcuts
This commit is contained in:
Rémi Verschelde 2021-03-15 08:15:07 +01:00 committed by GitHub
commit db0355cb07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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