mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-23 04:16:50 +01:00
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:
parent
5514c64c86
commit
9fcf3b8532
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user