mirror of
https://github.com/storytold/storyteller-bevy.git
synced 2026-10-17 00:13:17 +00:00
Fix rare failure
This commit is contained in:
@@ -239,8 +239,10 @@ pub(super) fn on_rotate(
|
||||
q_widget: Query<&RotationWidget>,
|
||||
) {
|
||||
// Components from the gizmo root (the entity being transformed)
|
||||
let (mut xform, parent, init_xform, init_point, mut last_point, mut last_rotation) =
|
||||
q_root.single_mut();
|
||||
let Ok((mut xform, parent, init_xform, init_point, mut last_point, mut last_rotation)) =
|
||||
q_root.get_single_mut() else {
|
||||
return;
|
||||
};
|
||||
|
||||
let gizmo_xform = q_gizmo.single();
|
||||
let (cam, cam_xform) = q_camera.single();
|
||||
|
||||
Reference in New Issue
Block a user