impl Debug for ExtendedMaterial (#14140)
# Objective
Both `Material` and `MaterialExtension` (base and extension) can derive
Debug, so there's no reason to not allow `ExtendedMaterial` to derive it
## Solution
- Describe the solution used to achieve the objective above.
Add `Debug` to the list of derived traits
## Testing
- Did you test these changes? If so, how?
I compiled my test project on latest commit, making sure it actually
compiles
- How can other people (reviewers) test your changes? Is there anything
specific they need to know?
Create an ExtendedMaterial instance, try to `println!("{:?}",
material);`
Co-authored-by: NWPlayer123 <NWPlayer123@users.noreply.github.com>
			
			
This commit is contained in:
		
							parent
							
								
									5986d5d309
								
							
						
					
					
						commit
						c6a89c2187
					
				| @ -121,7 +121,7 @@ pub trait MaterialExtension: Asset + AsBindGroup + Clone + Sized { | ||||
| /// When used with `StandardMaterial` as the base, all the standard material fields are
 | ||||
| /// present, so the `pbr_fragment` shader functions can be called from the extension shader (see
 | ||||
| /// the `extended_material` example).
 | ||||
| #[derive(Asset, Clone, Reflect)] | ||||
| #[derive(Asset, Clone, Debug, Reflect)] | ||||
| #[reflect(type_path = false)] | ||||
| pub struct ExtendedMaterial<B: Material, E: MaterialExtension> { | ||||
|     pub base: B, | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 NWPlayer123
						NWPlayer123