Fixed 0th index having pipes after rewinding to that spot

main
Elijah Voigt 3 months ago
parent 76aeb8dcaf
commit 641732ae03

@ -868,10 +868,10 @@ fn update_tooltip(
&mut ToolTip, &mut ToolTip,
Option<&LinearVelocity>, Option<&LinearVelocity>,
Option<&Batch>, Option<&Batch>,
Entity, Option<&RigidBody>,
)>, )>,
) { ) {
query.iter_mut().for_each(|(mut tt, lv, b, _e)| { query.iter_mut().for_each(|(mut tt, lv, b, rb)| {
// Add Linear Velocity if present on entity // Add Linear Velocity if present on entity
lv.iter().for_each(|it| { lv.iter().for_each(|it| {
tt.insert("Velocity", format!("{}", it.0)); tt.insert("Velocity", format!("{}", it.0));
@ -880,5 +880,8 @@ fn update_tooltip(
b.iter().for_each(|it| { b.iter().for_each(|it| {
tt.insert("Batch", format!("{}", it.0)); tt.insert("Batch", format!("{}", it.0));
}); });
rb.iter().for_each(|it| {
tt.insert("RigidBody", format!("{it:?}"));
})
}); });
} }

Loading…
Cancel
Save