From 45f9545175c3d3ff96463e3283f56ac3cdcf175b Mon Sep 17 00:00:00 2001 From: Hennadii Chernyshchyk Date: Mon, 2 May 2022 14:43:58 +0300 Subject: [PATCH] Rename AsyncCollider::Mesh into AsyncCollider::TriMesh --- src/geometry/collider.rs | 2 +- src/plugin/systems.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/geometry/collider.rs b/src/geometry/collider.rs index 839675e2..fff3c913 100644 --- a/src/geometry/collider.rs +++ b/src/geometry/collider.rs @@ -16,7 +16,7 @@ pub struct RapierColliderHandle(pub ColliderHandle); #[derive(Component, Debug, Clone)] pub enum AsyncCollider { /// A future triangle-mesh collider based on a Bevy mesh asset. - Mesh(Handle), + TriMesh(Handle), /// A future convex decomposition collider based on a Bevy mesh asset. ConvexDecomposition(Handle, VHACDParameters), } diff --git a/src/plugin/systems.rs b/src/plugin/systems.rs index 241019cf..12c84fee 100644 --- a/src/plugin/systems.rs +++ b/src/plugin/systems.rs @@ -549,7 +549,7 @@ pub fn init_async_shapes( ) { for (entity, async_shape) in async_shapes.iter() { match async_shape { - AsyncCollider::Mesh(handle) => { + AsyncCollider::TriMesh(handle) => { if let Some(coll) = meshes.get(handle).and_then(Collider::bevy_mesh) { commands.entity(entity).insert(coll); }