summaryrefslogtreecommitdiffstats
path: root/modules/gridmap/editor/grid_map_editor_plugin.cpp
diff options
context:
space:
mode:
authorkit <kitbdev@gmail.com>2024-08-19 18:08:31 -0400
committerkit <kitbdev@gmail.com>2024-09-09 11:06:18 -0400
commit5e1c9d68aad00ad025a14f4a1907b92a6f7f6310 (patch)
tree2772c83f7f4b89b5a422113726b3c0611d4f0b30 /modules/gridmap/editor/grid_map_editor_plugin.cpp
parentd0dc3896ad6fe039e4ad0607d901c81197cb3a3b (diff)
downloadredot-engine-5e1c9d68aad00ad025a14f4a1907b92a6f7f6310.tar.gz
Extract editor main screen
Diffstat (limited to 'modules/gridmap/editor/grid_map_editor_plugin.cpp')
-rw-r--r--modules/gridmap/editor/grid_map_editor_plugin.cpp3
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);