Skip to content

Commit

Permalink
Fix for Fix: Occluder Instance Entity Index Out of Range
Browse files Browse the repository at this point in the history
`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.
  • Loading branch information
RhapsodyInGeek authored Nov 30, 2023
1 parent 8b221ac commit 67f9622
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/qodot/src/nodes/qodot_map.gd
Original file line number Diff line number Diff line change
Expand Up @@ -1063,8 +1063,8 @@ func apply_entity_occluders() -> void:
var mesh := entity_mesh_dict[entity_idx] as Mesh
var occluder_instance : OccluderInstance3D

if entity_occluder_instances.size() > entity_idx:
entity_occluder_instances[entity_idx]
if entity_idx in entity_occluder_instances:
occluder_instance = entity_occluder_instances[entity_idx]

if not mesh or not occluder_instance:
continue
Expand Down

0 comments on commit 67f9622

Please sign in to comment.