 70c9165886
			
		
	
	
		70c9165886
		
	
	
	
	
		
			
			# Objective This PR fixes a crash when winit is enabled when there is a camera in the world. Part of #3155 ## Solution In this PR, I removed two unwraps and added an example for regression testing.
		
			
				
	
	
		
			14 lines
		
	
	
		
			322 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			322 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| use bevy::prelude::*;
 | |
| use bevy::winit::WinitPlugin;
 | |
| 
 | |
| fn main() {
 | |
|     App::new()
 | |
|         .add_plugins_with(DefaultPlugins, |group| group.disable::<WinitPlugin>())
 | |
|         .add_system(setup_system)
 | |
|         .run();
 | |
| }
 | |
| 
 | |
| fn setup_system(mut commands: Commands) {
 | |
|     commands.spawn_bundle(PerspectiveCameraBundle::default());
 | |
| }
 |