Skip to content
This repository was archived by the owner on Dec 14, 2025. It is now read-only.

Commit 67f9622

Browse files
Fix for Fix: Occluder Instance Entity Index Out of Range
`occluder_instance` is now properly assigned. Changed check to `entity_index in entity_occluder_instances` due to it being a Dictionary and not an Array. Occluder instances no longer indexing out of range on map build.
1 parent 8b221ac commit 67f9622

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

addons/qodot/src/nodes/qodot_map.gd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1063,8 +1063,8 @@ func apply_entity_occluders() -> void:
10631063
var mesh := entity_mesh_dict[entity_idx] as Mesh
10641064
var occluder_instance : OccluderInstance3D
10651065

1066-
if entity_occluder_instances.size() > entity_idx:
1067-
entity_occluder_instances[entity_idx]
1066+
if entity_idx in entity_occluder_instances:
1067+
occluder_instance = entity_occluder_instances[entity_idx]
10681068

10691069
if not mesh or not occluder_instance:
10701070
continue

0 commit comments

Comments
 (0)