diff --git a/examples/tools/scene_viewer/main.rs b/examples/tools/scene_viewer/main.rs index 4078e17de231f..69c39d52c7e1b 100644 --- a/examples/tools/scene_viewer/main.rs +++ b/examples/tools/scene_viewer/main.rs @@ -176,7 +176,6 @@ fn setup_scene_after_load( meshes: Query<(&GlobalTransform, Option<&Aabb>), With>, ) { if scene_handle.is_loaded && !*setup { - *setup = true; // Find an approximate bounding box of the scene from its meshes if meshes.iter().any(|(_, maybe_aabb)| maybe_aabb.is_none()) { return; @@ -285,5 +284,7 @@ fn setup_scene_after_load( scene_handle.has_light = true; } + + *setup = true; } }