3d viewer fix for 3d single material object Diffuse Only opacity
This commit is contained in:
parent
e2a2c3282a
commit
d9a11c30ef
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue