diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-05-04 16:37:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-04 16:37:40 +0200 |
commit | 878adb22b72d3442c7edd7de9a9b3f0348524d2f (patch) | |
tree | 0e4fd619aafd0d6a99c37707f75f9dfb1d6107d5 /editor/plugins/mesh_editor_plugin.cpp | |
parent | 560510b93b0c4b4dc40ce0599695504c4b2155fb (diff) | |
parent | 559bc3ca87042d477331ecd32f1881ce8d0b5d91 (diff) |
Merge pull request #37717 from qarmin/world_fix
Change non-existent World to World3D
Diffstat (limited to 'editor/plugins/mesh_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/mesh_editor_plugin.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editor/plugins/mesh_editor_plugin.cpp b/editor/plugins/mesh_editor_plugin.cpp index 5e657c3b71..3e603fa499 100644 --- a/editor/plugins/mesh_editor_plugin.cpp +++ b/editor/plugins/mesh_editor_plugin.cpp @@ -116,9 +116,9 @@ void MeshEditor::_bind_methods() { MeshEditor::MeshEditor() { viewport = memnew(SubViewport); - Ref<World3D> world; - world.instance(); - viewport->set_world(world); //use own world + Ref<World3D> world_3d; + world_3d.instance(); + viewport->set_world_3d(world_3d); //use own world add_child(viewport); viewport->set_disable_input(true); viewport->set_msaa(Viewport::MSAA_2X); |