summaryrefslogtreecommitdiff
path: root/editor/plugins/script_editor_plugin.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2020-12-28 20:19:16 +0100
committerGitHub <noreply@github.com>2020-12-28 20:19:16 +0100
commit593d0359498ab6bb137371de6670cc2aadb989ad (patch)
treead5aadb32160391782afe7d7a2c5abb70203dd8f /editor/plugins/script_editor_plugin.cpp
parenta04b9669e852ddaff77cb23d8b52a9219fa5a61f (diff)
parent44357ddc28351c530358fab37ea49a96288d6d27 (diff)
Merge pull request #44768 from akien-mga/fix-44761-wrong-get_viewport
Editor: Fix invalid use of Node::get_viewport() after rename of EditorNode::get_viewport()
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 10bd7cc952..dcf246ca61 100644
--- a/editor/plugins/script_editor_plugin.cpp
+++ b/editor/plugins/script_editor_plugin.cpp
@@ -3646,7 +3646,7 @@ void ScriptEditorPlugin::edited_scene_changed() {
ScriptEditorPlugin::ScriptEditorPlugin(EditorNode *p_node) {
editor = p_node;
script_editor = memnew(ScriptEditor(p_node));
- editor->get_viewport()->add_child(script_editor);
+ editor->get_main_control()->add_child(script_editor);
script_editor->set_v_size_flags(Control::SIZE_EXPAND_FILL);
script_editor->hide();