Skip to content

Commit

Permalink
Merge pull request #52 from AlexAegis/main
Browse files Browse the repository at this point in the history
Use GlobalTarget when reading the position of the Gizmo camera
  • Loading branch information
urholaukkarinen authored Apr 12, 2024
2 parents 0666e55 + 349bcea commit 49b3588
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/transform-gizmo-bevy/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ struct GizmoStorage {
#[allow(clippy::too_many_arguments)]
fn update_gizmos(
q_window: Query<&Window, With<PrimaryWindow>>,
q_gizmo_camera: Query<(&Camera, &Transform), With<GizmoCamera>>,
q_gizmo_camera: Query<(&Camera, &GlobalTransform), With<GizmoCamera>>,
mut q_targets: Query<(Entity, &mut Transform, &mut GizmoTarget), Without<GizmoCamera>>,
mouse: Res<ButtonInput<MouseButton>>,
gizmo_options: Res<GizmoOptions>,
Expand Down

0 comments on commit 49b3588

Please sign in to comment.