mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 06:01:14 +00:00
Enables the possibility of editing on multiple plugins at same time on same object type.
This commit is contained in:
parent
15d1fca061
commit
7a1d7af332
7 changed files with 146 additions and 38 deletions
|
|
@ -810,10 +810,10 @@ void SpatialEditorViewport::_sinput(const InputEvent &p_event) {
|
|||
{
|
||||
|
||||
EditorNode *en = editor;
|
||||
EditorPlugin *over_plugin = en->get_editor_plugin_over();
|
||||
EditorPluginList *over_plugin_list = en->get_editor_plugins_over();
|
||||
|
||||
if (over_plugin) {
|
||||
bool discard = over_plugin->forward_spatial_input_event(camera,p_event);
|
||||
if (!over_plugin_list->empty()) {
|
||||
bool discard = over_plugin_list->forward_spatial_input_event(camera,p_event);
|
||||
if (discard)
|
||||
return;
|
||||
}
|
||||
|
|
@ -3553,9 +3553,9 @@ void SpatialEditor::_unhandled_key_input(InputEvent p_event) {
|
|||
{
|
||||
|
||||
EditorNode *en = editor;
|
||||
EditorPlugin *over_plugin = en->get_editor_plugin_over();
|
||||
EditorPluginList *over_plugin_list = en->get_editor_plugins_over();
|
||||
|
||||
if (over_plugin && over_plugin->forward_input_event(p_event)) {
|
||||
if (!over_plugin_list->empty() && over_plugin_list->forward_input_event(p_event)) {
|
||||
|
||||
return; //ate the over input event
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue