Use mesh context for disabled translucency

This commit is contained in:
Lubos Lenco 2017-11-26 15:03:11 +01:00
parent 68754ad79c
commit e8a4e021b0

View file

@ -30,7 +30,7 @@ def get_rpasses(material):
ar.append('decal')
elif material.arm_overlay:
ar.append('overlay')
elif is_transluc(material) and not material.arm_discard and not vgirefract:
elif is_transluc(material) and not material.arm_discard and not vgirefract and rpdat.rp_translucency_state != 'Off':
ar.append('translucent')
else:
ar.append('mesh')