You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-29 16:16:38 +00:00
Avoid indexing instances without a base in scene cull phase
(cherry picked from commit b5fd29e7bc)
This commit is contained in:
committed by
Rémi Verschelde
parent
1250b4568a
commit
b1fda8f5c4
@@ -1636,6 +1636,8 @@ void RendererSceneCull::_update_instance(Instance *p_instance) {
|
|||||||
if (p_instance->scenario) {
|
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);
|
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()) {
|
if (!p_instance->aabb.has_surface()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user