mirror of
https://github.com/bevyengine/bevy.git
synced 2026-05-06 06:06:42 -04:00
fix building custom_primitives examples in wasm (#22511)
# Objective - Example `custom_primitives` doesn't build in wasm ## Solution - Add the missing gate
This commit is contained in:
@@ -390,6 +390,7 @@ fn switch_shapes(
|
||||
};
|
||||
}
|
||||
|
||||
#[cfg(not(target_family = "wasm"))]
|
||||
fn toggle_wireframes(mut wireframe_config: ResMut<WireframeConfig>) {
|
||||
wireframe_config.global = !wireframe_config.global;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user