re-enable opt=3 for debug
This commit is contained in:
		
							parent
							
								
									1143f16743
								
							
						
					
					
						commit
						3c83e34cc1
					
				| @ -69,4 +69,4 @@ type-uuid = "0.1" | ||||
| env_logger = "0.7" | ||||
| 
 | ||||
| [profile.dev] | ||||
| # opt-level = 3 | ||||
| opt-level = 3 | ||||
| @ -8,16 +8,15 @@ fn main() { | ||||
|         .run(); | ||||
| } | ||||
| 
 | ||||
| /// set up a simple scene
 | ||||
| fn setup(world: &mut World, resources: &mut Resources) { | ||||
|     // load the mesh
 | ||||
|     let mesh = gltf::load_gltf("examples/assets/Monkey.gltf") | ||||
|         .unwrap() | ||||
|         .unwrap(); | ||||
|     // create a cube and a plane mesh
 | ||||
|     let mut mesh_storage = resources.get_mut::<AssetStorage<Mesh>>().unwrap(); | ||||
|     let mesh_handle = mesh_storage.add(mesh); | ||||
| 
 | ||||
|     // create materials for our cube and plane
 | ||||
|     // create a material for the mesh
 | ||||
|     let mut material_storage = resources | ||||
|         .get_mut::<AssetStorage<StandardMaterial>>() | ||||
|         .unwrap(); | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Carter Anderson
						Carter Anderson