1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

Remove the EditorNode parameter from EditorPlugins create methods

Remove EditorNode usage from the Navigation editor plugin.
This commit is contained in:
trollodel
2022-02-14 17:59:06 +01:00
parent f810f76890
commit cd1d7294d8
10 changed files with 15 additions and 19 deletions

View File

@@ -140,10 +140,9 @@ void NavigationMeshEditorPlugin::make_visible(bool p_visible) {
}
}
NavigationMeshEditorPlugin::NavigationMeshEditorPlugin(EditorNode *p_node) {
editor = p_node;
NavigationMeshEditorPlugin::NavigationMeshEditorPlugin() {
navigation_mesh_editor = memnew(NavigationMeshEditor);
editor->get_main_control()->add_child(navigation_mesh_editor);
EditorNode::get_singleton()->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();