diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-09-11 12:34:46 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-09-11 12:34:46 +0200 |
commit | b6906b96774ded20275da3d37847ffbd19804c68 (patch) | |
tree | ffb7e20e7679894cb5f4e8c346742542142611e2 /modules/gridmap/editor/grid_map_editor_plugin.cpp | |
parent | d4b1d51dc1e6c60db9f8c7f34f9d3aad7755ce1d (diff) | |
parent | 5e1c9d68aad00ad025a14f4a1907b92a6f7f6310 (diff) | |
download | redot-engine-b6906b96774ded20275da3d37847ffbd19804c68.tar.gz |
Merge pull request #96389 from kitbdev/extract-main-screen
Extract EditorMainScreen from EditorNode
Diffstat (limited to 'modules/gridmap/editor/grid_map_editor_plugin.cpp')
-rw-r--r-- | modules/gridmap/editor/grid_map_editor_plugin.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/gridmap/editor/grid_map_editor_plugin.cpp b/modules/gridmap/editor/grid_map_editor_plugin.cpp index ea63e07104..6b010335e6 100644 --- a/modules/gridmap/editor/grid_map_editor_plugin.cpp +++ b/modules/gridmap/editor/grid_map_editor_plugin.cpp @@ -34,6 +34,7 @@ #include "core/input/input.h" #include "core/os/keyboard.h" +#include "editor/editor_main_screen.h" #include "editor/editor_node.h" #include "editor/editor_settings.h" #include "editor/editor_string_names.h" @@ -958,7 +959,7 @@ void GridMapEditor::edit(GridMap *p_gridmap) { _update_selection_transform(); _update_paste_indicator(); - spatial_editor = Object::cast_to<Node3DEditorPlugin>(EditorNode::get_singleton()->get_editor_plugin_screen()); + spatial_editor = Object::cast_to<Node3DEditorPlugin>(EditorNode::get_singleton()->get_editor_main_screen()->get_selected_plugin()); if (!node) { set_process(false); |