forked from StrafesNET/strafe-client
use const
This commit is contained in:
parent
d3f84c2dbd
commit
c616e82c47
@ -462,7 +462,7 @@ pub struct TransformedMesh<'a>{
|
|||||||
transform:&'a PhysicsMeshTransform,
|
transform:&'a PhysicsMeshTransform,
|
||||||
}
|
}
|
||||||
impl TransformedMesh<'_>{
|
impl TransformedMesh<'_>{
|
||||||
pub fn new<'a>(
|
pub const fn new<'a>(
|
||||||
view:PhysicsMeshView<'a>,
|
view:PhysicsMeshView<'a>,
|
||||||
transform:&'a PhysicsMeshTransform,
|
transform:&'a PhysicsMeshTransform,
|
||||||
)->TransformedMesh<'a>{
|
)->TransformedMesh<'a>{
|
||||||
|
@ -419,7 +419,7 @@ impl HitboxMesh{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#[inline]
|
#[inline]
|
||||||
fn transformed_mesh(&self)->TransformedMesh{
|
const fn transformed_mesh(&self)->TransformedMesh{
|
||||||
TransformedMesh::new(self.mesh.complete_mesh_view(),&self.transform)
|
TransformedMesh::new(self.mesh.complete_mesh_view(),&self.transform)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user