mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-25 18:39:18 +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;
|
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);
|
return _active_node->forward_canvas_gui_input(p_event);
|
||||||
}
|
}
|
||||||
void PaintEditorPlugin::forward_canvas_draw_over_viewport(Control *p_overlay) {
|
void PaintEditorPlugin::forward_canvas_draw_over_viewport(Control *p_overlay) {
|
||||||
|
Loading…
Reference in New Issue
Block a user