Skip to content

Commit

Permalink
fix compilation without debug-render-3d (dimforge#601)
Browse files Browse the repository at this point in the history
* fix dimforge#598

* fix async-collider without default features
  • Loading branch information
Vrixyz authored Dec 4, 2024
1 parent 953dccb commit 6d7b84b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bevy_rapier2d/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ wasm-bindgen = ["rapier2d/wasm-bindgen"]
serde-serialize = ["rapier2d/serde-serialize", "bevy/serialize", "serde"]
enhanced-determinism = ["rapier2d/enhanced-determinism"]
headless = []
async-collider = ["bevy/bevy_asset", "bevy/bevy_scene"]
async-collider = ["bevy/bevy_asset", "bevy/bevy_scene", "bevy/bevy_render"]

[dependencies]
bevy = { version = "0.14", default-features = false }
Expand Down
2 changes: 1 addition & 1 deletion bevy_rapier3d/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ wasm-bindgen = ["rapier3d/wasm-bindgen"]
serde-serialize = ["rapier3d/serde-serialize", "bevy/serialize", "serde"]
enhanced-determinism = ["rapier3d/enhanced-determinism"]
headless = []
async-collider = ["bevy/bevy_asset", "bevy/bevy_scene"]
async-collider = ["bevy/bevy_asset", "bevy/bevy_scene", "bevy/bevy_render"]

[dependencies]
bevy = { version = "0.14", default-features = false }
Expand Down
4 changes: 1 addition & 3 deletions src/plugin/plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,12 +210,10 @@ where
.register_type::<ContactSkin>()
.register_type::<Group>()
.register_type::<RapierContextEntityLink>()
.register_type::<ColliderDebugColor>()
.register_type::<RapierConfiguration>()
.register_type::<SimulationToRenderTime>()
.register_type::<DefaultRapierContext>()
.register_type::<RapierContextInitialization>()
.register_type::<ColliderDebugColor>();
.register_type::<RapierContextInitialization>();

app.insert_resource(Events::<CollisionEvent>::default())
.insert_resource(Events::<ContactForceEvent>::default())
Expand Down
1 change: 1 addition & 0 deletions src/render/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ impl Plugin for RapierDebugRenderPlugin {
fn build(&self, app: &mut App) {
app.register_type::<DebugRenderContext>();
app.register_type::<ColliderDebug>();
app.register_type::<ColliderDebugColor>();

app.insert_resource(DebugRenderContext {
enabled: self.enabled,
Expand Down

0 comments on commit 6d7b84b

Please sign in to comment.