PaintEditorPlugin now won't send input events to the active PaintNode, if CanvasItemEditor's currently selcted tool isn't TOOL_SELECT.

This commit is contained in:
Relintai 2022-11-20 16:04:39 +01:00
parent 5514c64c86
commit 9fcf3b8532

View File

@ -56,6 +56,10 @@ bool PaintEditorPlugin::forward_canvas_gui_input(const Ref<InputEvent> &p_event)
return false;
}
if (CanvasItemEditor::get_singleton() && CanvasItemEditor::get_singleton()->get_current_tool() != CanvasItemEditor::TOOL_SELECT) {
return false;
}
return _active_node->forward_canvas_gui_input(p_event);
}
void PaintEditorPlugin::forward_canvas_draw_over_viewport(Control *p_overlay) {