Skip to content

Commit

Permalink
my fault
Browse files Browse the repository at this point in the history
  • Loading branch information
DotWith committed Aug 18, 2024
1 parent ea796a2 commit 8bff2ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bevy_rmesh/src/loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use bevy::render::{
render_resource::PrimitiveTopology,
};
use directx_mesh::read_directx_mesh;
use rmesh::{read_rmesh, ROOM_SCALE};
use rmesh::{read_rmesh, ExtMesh, ROOM_SCALE};
use serde::{Deserialize, Serialize};

pub struct RMeshLoader {
Expand Down Expand Up @@ -177,7 +177,7 @@ async fn load_rmesh<'a, 'b, 'c>(
..Default::default()
});
let complex_mesh = &header.meshes[i];
let bounds = rmesh::bounding_box(&complex_mesh.vertices);
let bounds = complex_mesh.bounding_box();
mesh_entity.insert(Aabb::from_min_max(
Vec3::from_slice(&bounds.min),
Vec3::from_slice(&bounds.max),
Expand Down

0 comments on commit 8bff2ae

Please sign in to comment.