Skip to content

Commit

Permalink
Merge pull request #247 from BlackPhlox/no_editor_cam_fix
Browse files Browse the repository at this point in the history
Former-commit-id: 341ab0c
  • Loading branch information
janhohenheim authored Apr 2, 2023
2 parents 6e5ba62 + 01a8dcf commit 4cd9369
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/level_instantiation/spawning/objects/camera.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use crate::player_control::actions::create_camera_action_input_manager_bundle;
use crate::player_control::camera::IngameCamera;
use bevy::prelude::*;
use bevy_dolly::prelude::*;
use bevy_editor_pls::default_windows::cameras::EditorCamera;

pub(crate) fn spawn(In(transform): In<Transform>, mut commands: Commands) {
commands.spawn((
Expand All @@ -21,5 +22,6 @@ pub(crate) fn spawn(In(transform): In<Transform>, mut commands: Commands) {
create_camera_action_input_manager_bundle(),
Name::new("Main Camera"),
GameObject::Camera,
EditorCamera,
));
}

0 comments on commit 4cd9369

Please sign in to comment.