summaryrefslogtreecommitdiffstats
path: root/scene/3d/visual_instance_3d.cpp
diff options
context:
space:
mode:
authorqarmin <mikrutrafal54@gmail.com>2020-04-18 11:00:51 +0200
committerqarmin <mikrutrafal54@gmail.com>2020-04-18 11:00:51 +0200
commit559bc3ca87042d477331ecd32f1881ce8d0b5d91 (patch)
tree7039216faa9c9261f60bcc726ac3453257dd9127 /scene/3d/visual_instance_3d.cpp
parentd817be92c2d9edce842ab37ab13117743f8a3bee (diff)
downloadredot-engine-559bc3ca87042d477331ecd32f1881ce8d0b5d91.tar.gz
Change non-existent World to World3D
Diffstat (limited to 'scene/3d/visual_instance_3d.cpp')
-rw-r--r--scene/3d/visual_instance_3d.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/3d/visual_instance_3d.cpp b/scene/3d/visual_instance_3d.cpp
index 604bc53422..ce8672c1dd 100644
--- a/scene/3d/visual_instance_3d.cpp
+++ b/scene/3d/visual_instance_3d.cpp
@@ -60,8 +60,8 @@ void VisualInstance3D::_notification(int p_what) {
if (skeleton)
RenderingServer::get_singleton()->instance_attach_skeleton( instance, skeleton->get_skeleton() );
*/
- ERR_FAIL_COND(get_world().is_null());
- RenderingServer::get_singleton()->instance_set_scenario(instance, get_world()->get_scenario());
+ ERR_FAIL_COND(get_world_3d().is_null());
+ RenderingServer::get_singleton()->instance_set_scenario(instance, get_world_3d()->get_scenario());
_update_visibility();
} break;