From b5fd29e7bc9aafb767215c6a7bb5177829466d23 Mon Sep 17 00:00:00 2001 From: clayjohn Date: Tue, 13 Aug 2024 13:02:15 -0700 Subject: [PATCH] Avoid indexing instances without a base in scene cull phase --- servers/rendering/renderer_scene_cull.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/servers/rendering/renderer_scene_cull.cpp b/servers/rendering/renderer_scene_cull.cpp index b02d3def88f..3464c5a8856 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()) {