summaryrefslogtreecommitdiffstats
path: root/editor/plugins/script_editor_plugin.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-09-07 08:59:37 +0200
committerRémi Verschelde <rverschelde@gmail.com>2022-09-07 08:59:37 +0200
commitc1150428c6476074f1a2daf3effb89f84bad57ce (patch)
tree9f2a087a9a895878fd621faa137c2a8fb6c3f26a /editor/plugins/script_editor_plugin.cpp
parent80dacac90c57db91d30e58dadf688e1eaa10ab97 (diff)
parent1459507ed28d68e0066ee2631c0b3671c1c76faa (diff)
downloadredot-engine-c1150428c6476074f1a2daf3effb89f84bad57ce.tar.gz
Merge pull request #65449 from YuriSizov/editor-main-control-screen-container-node
Rename `EditorInterface.get_editor_main_control` to `get_editor_main_screen`
Diffstat (limited to 'editor/plugins/script_editor_plugin.cpp')
-rw-r--r--editor/plugins/script_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp
index 0ffed9a757..953f72bd05 100644
--- a/editor/plugins/script_editor_plugin.cpp
+++ b/editor/plugins/script_editor_plugin.cpp
@@ -4049,7 +4049,7 @@ void ScriptEditorPlugin::edited_scene_changed() {
ScriptEditorPlugin::ScriptEditorPlugin() {
script_editor = memnew(ScriptEditor);
- EditorNode::get_singleton()->get_main_control()->add_child(script_editor);
+ EditorNode::get_singleton()->get_main_screen_control()->add_child(script_editor);
script_editor->set_v_size_flags(Control::SIZE_EXPAND_FILL);
script_editor->hide();