We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19e9e93 commit 116d038Copy full SHA for 116d038
crates/rmf_site_editor/src/site/slotcar.rs
@@ -63,7 +63,7 @@ fn insert_slotcar_components(
63
(Without<ModelMarker>, Without<Group>),
64
>,
65
robot_properties: Query<
66
- &IsStatic,
+ Option<&IsStatic>,
67
(
68
With<ModelMarker>,
69
With<Group>,
@@ -110,7 +110,7 @@ fn insert_slotcar_components(
110
};
111
112
// Only insert Mobility if robot is not static
113
- if !is_static.0 {
+ if !is_static.is_some_and(|is| is.0) {
114
if let Ok(mobility_value) = serialize_robot_property_from_kind::<
115
Mobility,
116
DifferentialDrive,
0 commit comments