Skip to content

Commit

Permalink
Fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bash committed Jun 15, 2024
1 parent 59d483b commit 5851c12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/level_instantiation/on_spawn/collider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ fn spawn(
#[cfg(feature = "tracing")]
let _span = info_span!("read_colliders").entered();
for parent in collider_marker.iter() {
for child in iter::once(parent).chain(children.iter_descendants(entity)) {
for child in iter::once(parent).chain(children.iter_descendants(parent)) {
let Ok(mesh_handle) = mesh_handles.get(child) else {
continue;
};
// Cannot fail: we already load all the meshes at startup.
let mesh = meshes.get(mesh_handle).unwrap();
let collider = XpbdCollider::trimesh_from_mesh(&scaled_mesh)
let collider = XpbdCollider::trimesh_from_mesh(mesh)
.context("Failed to create collider from mesh")?;
commands.entity(child).insert((
collider,
Expand Down

0 comments on commit 5851c12

Please sign in to comment.