From 459cc23934ad8a0d325fdf30d9308bdc401806bd Mon Sep 17 00:00:00 2001 From: Luca Della Vedova Date: Fri, 13 Sep 2024 15:35:40 +0800 Subject: [PATCH] Minor fixes Signed-off-by: Luca Della Vedova --- rmf_site_editor/src/site/model.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rmf_site_editor/src/site/model.rs b/rmf_site_editor/src/site/model.rs index 69cf4a59..dfb5a793 100644 --- a/rmf_site_editor/src/site/model.rs +++ b/rmf_site_editor/src/site/model.rs @@ -149,11 +149,11 @@ pub fn spawn_scene_for_loaded_model( .unwrap_or(gltf.scenes.get(0).unwrap().clone()); Some((world.spawn(SceneBundle { scene, ..default() }).id(), true)) } else if type_id == TypeId::of::() { - let scene = h.clone().typed::(); + let scene = h.typed::(); Some((world.spawn(SceneBundle { scene, ..default() }).id(), true)) } else if type_id == TypeId::of::() { let site_assets = world.resource::(); - let mesh = h.clone().typed::(); + let mesh = h.typed::(); Some(( world .spawn(PbrBundle { @@ -176,7 +176,7 @@ pub fn spawn_scene_for_loaded_model( }) .add_child(model_id); if world.get::(parent).is_none() { - world.entity_mut(parent).insert(SpatialBundle::default()); + world.entity_mut(parent).insert(VisibilityBundle::default()); } Some((model_id, is_scene)) }