Fix warnings in tests and testbed.
This commit is contained in:
@@ -35,8 +35,9 @@ use crate::nphysics_backend::NPhysicsWorld;
|
||||
use crate::physx_backend::PhysxWorld;
|
||||
|
||||
const RAPIER_BACKEND: usize = 0;
|
||||
#[cfg(feature = "other-backends")]
|
||||
const NPHYSICS_BACKEND: usize = 1;
|
||||
#[cfg(feature = "dim2")]
|
||||
#[cfg(all(feature = "dim2", feature = "other-backends"))]
|
||||
const BOX2D_BACKEND: usize = 2;
|
||||
pub(crate) const PHYSX_BACKEND_PATCH_FRICTION: usize = 2;
|
||||
pub(crate) const PHYSX_BACKEND_TWO_FRICTION_DIR: usize = 3;
|
||||
|
||||
@@ -137,7 +137,7 @@ impl TestbedUi {
|
||||
.set(self.ids.backends_list, &mut ui)
|
||||
{
|
||||
if selected != state.selected_backend {
|
||||
#[cfg(feature = "dim3")]
|
||||
#[cfg(all(feature = "dim3", feature = "other-backends"))]
|
||||
fn is_physx(id: usize) -> bool {
|
||||
id == crate::testbed::PHYSX_BACKEND_PATCH_FRICTION
|
||||
|| id == crate::testbed::PHYSX_BACKEND_TWO_FRICTION_DIR
|
||||
|
||||
Reference in New Issue
Block a user