summaryrefslogtreecommitdiffstats
path: root/editor/plugins/mesh_library_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 /editor/plugins/mesh_library_editor_plugin.cpp
parentd0dc3896ad6fe039e4ad0607d901c81197cb3a3b (diff)
downloadredot-engine-5e1c9d68aad00ad025a14f4a1907b92a6f7f6310.tar.gz
Extract editor main screen
Diffstat (limited to 'editor/plugins/mesh_library_editor_plugin.cpp')
-rw-r--r--editor/plugins/mesh_library_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/mesh_library_editor_plugin.cpp b/editor/plugins/mesh_library_editor_plugin.cpp
index 58cc670475..d6650bd08f 100644
--- a/editor/plugins/mesh_library_editor_plugin.cpp
+++ b/editor/plugins/mesh_library_editor_plugin.cpp
@@ -308,7 +308,7 @@ void MeshLibraryEditorPlugin::make_visible(bool p_visible) {
MeshLibraryEditorPlugin::MeshLibraryEditorPlugin() {
mesh_library_editor = memnew(MeshLibraryEditor);
- EditorNode::get_singleton()->get_main_screen_control()->add_child(mesh_library_editor);
+ EditorNode::get_singleton()->get_gui_base()->add_child(mesh_library_editor);
mesh_library_editor->set_anchors_and_offsets_preset(Control::PRESET_TOP_WIDE);
mesh_library_editor->set_end(Point2(0, 22));
mesh_library_editor->hide();