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:
François Mockers
2026-01-14 19:22:27 +01:00
committed by GitHub
parent d772c32071
commit 2969a1b8f0
+1
View File
@@ -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;
}