space2
This commit is contained in:
@@ -12,10 +12,10 @@ fn spawn_level(
|
||||
gltf_assets: Res<GltfAssets>
|
||||
) {
|
||||
println!("LIBRARY: {:?}", gltf_assets.library);
|
||||
let jumbo = gltf_assets.library.get("meshes/library/wall.glb").unwrap();
|
||||
let gltf = models.get(jumbo).unwrap();
|
||||
let jumbo = gltf_assets.library.get("meshes/library/space2.glb").expect("Couldn't find object in library");
|
||||
let gltf = models.get(jumbo).expect("No model for space2");
|
||||
|
||||
// commands.spawn(SceneRoot(gltf.scenes[0].clone()));
|
||||
let asset = gltf.default_scene.as_ref().unwrap();
|
||||
let asset = gltf.default_scene.as_ref().expect("No scene in space2");
|
||||
commands.spawn(SceneRoot(asset.clone()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user