mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Change non-existent World to World3D
This commit is contained in:
parent
d817be92c2
commit
559bc3ca87
22 changed files with 153 additions and 153 deletions
|
@ -117,9 +117,9 @@ MaterialEditor::MaterialEditor() {
|
|||
add_child(vc);
|
||||
vc->set_anchors_and_margins_preset(PRESET_WIDE);
|
||||
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
|
||||
vc->add_child(viewport);
|
||||
viewport->set_disable_input(true);
|
||||
viewport->set_transparent_background(true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue