This commit is contained in:
rewin
2024-02-19 21:40:43 +03:00
parent 4c4646dcd8
commit 220a3d3a62
+3 -2
View File
@@ -240,8 +240,9 @@ pub(super) fn on_rotate(
) { ) {
// Components from the gizmo root (the entity being transformed) // Components from the gizmo root (the entity being transformed)
let Ok((mut xform, parent, init_xform, init_point, mut last_point, mut last_rotation)) = let Ok((mut xform, parent, init_xform, init_point, mut last_point, mut last_rotation)) =
q_root.get_single_mut() else { q_root.get_single_mut()
return; else {
return;
}; };
let gizmo_xform = q_gizmo.single(); let gizmo_xform = q_gizmo.single();