diff options
author | clayjohn <claynjohn@gmail.com> | 2024-08-13 13:02:15 -0700 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-09-17 08:57:42 +0200 |
commit | b1fda8f5c4f2d1f987beafcf777fe187e24f2ed9 (patch) | |
tree | 6c9aed6dfa9e99ec7d89f26a7ade21976b962a39 /servers | |
parent | 1250b4568aef8c55d797cdbb6a720165d517c772 (diff) | |
download | redot-engine-b1fda8f5c4f2d1f987beafcf777fe187e24f2ed9.tar.gz |
Avoid indexing instances without a base in scene cull phase
(cherry picked from commit b5fd29e7bc9aafb767215c6a7bb5177829466d23)
Diffstat (limited to 'servers')
-rw-r--r-- | servers/rendering/renderer_scene_cull.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/servers/rendering/renderer_scene_cull.cpp b/servers/rendering/renderer_scene_cull.cpp index b08698d32a..5989fca3ea 100644 --- a/servers/rendering/renderer_scene_cull.cpp +++ b/servers/rendering/renderer_scene_cull.cpp @@ -1636,6 +1636,8 @@ void RendererSceneCull::_update_instance(Instance *p_instance) { if (p_instance->scenario) { RendererSceneOcclusionCull::get_singleton()->scenario_set_instance(p_instance->scenario->self, p_instance->self, p_instance->base, p_instance->transform, p_instance->visible); } + } else if (p_instance->base_type == RS::INSTANCE_NONE) { + return; } if (!p_instance->aabb.has_surface()) { |