Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Della Vedova <lucadv@intrinsic.ai>
  • Loading branch information
luca-della-vedova committed Sep 13, 2024
1 parent 073e4f6 commit 459cc23
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rmf_site_editor/src/site/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<Scene>() {
let scene = h.clone().typed::<Scene>();
let scene = h.typed::<Scene>();
Some((world.spawn(SceneBundle { scene, ..default() }).id(), true))
} else if type_id == TypeId::of::<Mesh>() {
let site_assets = world.resource::<SiteAssets>();
let mesh = h.clone().typed::<Mesh>();
let mesh = h.typed::<Mesh>();
Some((
world
.spawn(PbrBundle {
Expand All @@ -176,7 +176,7 @@ pub fn spawn_scene_for_loaded_model(
})
.add_child(model_id);
if world.get::<Visibility>(parent).is_none() {
world.entity_mut(parent).insert(SpatialBundle::default());
world.entity_mut(parent).insert(VisibilityBundle::default());
}
Some((model_id, is_scene))
}
Expand Down

0 comments on commit 459cc23

Please sign in to comment.