File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
crates/processing_render/src/material Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -66,13 +66,12 @@ fn specialize(
6666 _layout : & MeshVertexBufferLayoutRef ,
6767 _pipeline_key : ErasedMaterialPipelineKey ,
6868) -> std:: result:: Result < ( ) , SpecializedMeshPipelineError > {
69- if let Some ( key) = key. downcast_ref :: < CustomMaterialKey > ( ) {
70- if let Some ( blend_state) = key. blend_state {
71- if let Some ( fragment_state) = & mut descriptor. fragment {
72- for target in fragment_state. targets . iter_mut ( ) . flatten ( ) {
73- target. blend = Some ( blend_state) ;
74- }
75- }
69+ if let Some ( key) = key. downcast_ref :: < CustomMaterialKey > ( )
70+ && let Some ( blend_state) = key. blend_state
71+ && let Some ( fragment_state) = & mut descriptor. fragment
72+ {
73+ for target in fragment_state. targets . iter_mut ( ) . flatten ( ) {
74+ target. blend = Some ( blend_state) ;
7675 }
7776 }
7877 Ok ( ( ) )
You can’t perform that action at this time.
0 commit comments