3d viewer fix for 3d single material object Diffuse Only opacity

This commit is contained in:
Maurice 2021-06-28 13:01:31 +00:00 committed by Wayne Stambaugh
parent e2a2c3282a
commit d9a11c30ef
1 changed files with 2 additions and 1 deletions

View File

@ -149,7 +149,8 @@ MODEL_3D::MODEL_3D( const S3DMODEL& a3DModel, MATERIAL_MODE aMaterialMode )
auto& mesh_group = mesh_groups[mesh.m_MaterialIdx];
auto& material = m_materials[mesh.m_MaterialIdx];
if( material.IsTransparent() )
if( material.IsTransparent()
&& m_materialMode != MATERIAL_MODE::DIFFUSE_ONLY )
m_have_transparent_meshes = true;
else
m_have_opaque_meshes = true;