fix label to load gltf scene (#1204)

This commit is contained in:
François 2021-01-07 01:15:59 +01:00 committed by GitHub
parent c69aa98a60
commit 12d4184d7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}