Skip to content

Commit d666fe5

Browse files
committed
better example
1 parent d5d6ce0 commit d666fe5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/3d/3d_scene.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use bevy::prelude::*;
22
use bevy_internal::{
3-
render::wireframe::{Wireframe, WireframePlugin},
3+
render::wireframe::{Wireframe, WireframeConfig, WireframePlugin},
44
wgpu::{WgpuFeatures, WgpuOptions},
55
};
66

@@ -21,9 +21,11 @@ fn main() {
2121
/// set up a simple 3D scene
2222
fn setup(
2323
commands: &mut Commands,
24+
mut wireframe_config: ResMut<WireframeConfig>,
2425
mut meshes: ResMut<Assets<Mesh>>,
2526
mut materials: ResMut<Assets<StandardMaterial>>,
2627
) {
28+
wireframe_config.global = false;
2729
// add entities to the world
2830
commands
2931
// plane

0 commit comments

Comments
 (0)