You've already forked godot
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user