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