Skip to content

Commit 116d038

Browse files
committed
Make IsStatic optional
Signed-off-by: Xiyu Oh <xiyu@openrobotics.org>
1 parent 19e9e93 commit 116d038

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/rmf_site_editor/src/site/slotcar.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ fn insert_slotcar_components(
6363
(Without<ModelMarker>, Without<Group>),
6464
>,
6565
robot_properties: Query<
66-
&IsStatic,
66+
Option<&IsStatic>,
6767
(
6868
With<ModelMarker>,
6969
With<Group>,
@@ -110,7 +110,7 @@ fn insert_slotcar_components(
110110
};
111111

112112
// Only insert Mobility if robot is not static
113-
if !is_static.0 {
113+
if !is_static.is_some_and(|is| is.0) {
114114
if let Ok(mobility_value) = serialize_robot_property_from_kind::<
115115
Mobility,
116116
DifferentialDrive,

0 commit comments

Comments
 (0)