summaryrefslogtreecommitdiff
path: root/modules
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 /modules
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 'modules')
-rw-r--r--modules/gdnavigation/navigation_mesh_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdnavigation/navigation_mesh_editor_plugin.cpp b/modules/gdnavigation/navigation_mesh_editor_plugin.cpp
index 648f4f7cdd..2d3be7b071 100644
--- a/modules/gdnavigation/navigation_mesh_editor_plugin.cpp
+++ b/modules/gdnavigation/navigation_mesh_editor_plugin.cpp
@@ -142,7 +142,7 @@ void NavigationMeshEditorPlugin::make_visible(bool p_visible) {
NavigationMeshEditorPlugin::NavigationMeshEditorPlugin(EditorNode *p_node) {
editor = p_node;
navigation_mesh_editor = memnew(NavigationMeshEditor);
- editor->get_viewport()->add_child(navigation_mesh_editor);
+ editor->get_main_control()->add_child(navigation_mesh_editor);
add_control_to_container(CONTAINER_SPATIAL_EDITOR_MENU, navigation_mesh_editor->bake_hbox);
navigation_mesh_editor->hide();
navigation_mesh_editor->bake_hbox->hide();