Skip to content

Commit

Permalink
Update camera_view.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
rewin123 committed Oct 13, 2024
1 parent b02548d commit bb5641a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/editor_ui/src/camera_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ impl EditorTab for CameraViewTab {

fn clean_camera_view_tab(
mut ui_state: ResMut<CameraViewTab>,
mut cameras: Query<(&mut Camera, &mut Transform), Without<EditorCameraMarker>>,
mut cameras: Query<(&mut Camera, &mut GlobalTransform), Without<EditorCameraMarker>>,
) {
let Some(real_cam_entity) = ui_state.real_camera else {
return;
Expand All @@ -298,7 +298,7 @@ fn set_camera_viewport(
mut local: Local<LastCamTabRect>,
mut ui_state: ResMut<CameraViewTab>,
primary_window: Query<&mut Window, With<PrimaryWindow>>,
mut cameras: Query<(&mut Camera, &mut Transform), Without<EditorCameraMarker>>,
mut cameras: Query<(&mut Camera, &mut GlobalTransform), Without<EditorCameraMarker>>,
mut ctxs: EguiContexts,
images: Res<Assets<Image>>,
) {
Expand Down

0 comments on commit bb5641a

Please sign in to comment.