Skip to content

Commit 2969a1b

Browse files
authored
fix building custom_primitives examples in wasm (#22511)
# Objective - Example `custom_primitives` doesn't build in wasm ## Solution - Add the missing gate
1 parent d772c32 commit 2969a1b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/math/custom_primitives.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,7 @@ fn switch_shapes(
390390
};
391391
}
392392

393+
#[cfg(not(target_family = "wasm"))]
393394
fn toggle_wireframes(mut wireframe_config: ResMut<WireframeConfig>) {
394395
wireframe_config.global = !wireframe_config.global;
395396
}

0 commit comments

Comments
 (0)