Skip to content

Commit

Permalink
fix label to load gltf scene (#1204)
Browse files Browse the repository at this point in the history
  • Loading branch information
mockersf authored Jan 7, 2021
1 parent c69aa98 commit 12d4184
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/3d/update_gltf_scene.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ fn setup(
GlobalTransform::default(),
))
.with_children(|parent| {
parent.spawn_scene(asset_server.load("models/FlightHelmet/FlightHelmet.gltf"));
parent.spawn_scene(asset_server.load("models/FlightHelmet/FlightHelmet.gltf#Scene0"));
});

// Spawn a second scene, and keep its `instance_id`
let instance_id =
scene_spawner.spawn(asset_server.load("models/FlightHelmet/FlightHelmet.gltf"));
scene_spawner.spawn(asset_server.load("models/FlightHelmet/FlightHelmet.gltf#Scene0"));
scene_instance.0 = Some(instance_id);
}

Expand Down

0 comments on commit 12d4184

Please sign in to comment.