1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Change non-existent World to World3D

This commit is contained in:
qarmin
2020-04-18 11:00:51 +02:00
parent d817be92c2
commit 559bc3ca87
22 changed files with 153 additions and 153 deletions

View File

@@ -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);