Fix one more case of z_transparency

This commit is contained in:
Nathan Letwory 2010-09-14 00:30:45 +00:00
parent 4554278a1c
commit 4dc52feb70

@ -401,7 +401,8 @@ def create_materials(filepath, material_libs, unique_materials, unique_material_
context_material.raytrace_transparency.ior = max(1, min(float(line_split[1]), 3)) # between 1 and 3 context_material.raytrace_transparency.ior = max(1, min(float(line_split[1]), 3)) # between 1 and 3
elif line_lower.startswith('d') or line_lower.startswith('tr'): elif line_lower.startswith('d') or line_lower.startswith('tr'):
context_material.alpha = float(line_split[1]) context_material.alpha = float(line_split[1])
context_material.z_transparency = True context_material.use_transparency = True
context_material.transparency_method = 'Z_TRANSPARENCY'
elif line_lower.startswith('map_ka'): elif line_lower.startswith('map_ka'):
img_filepath= line_value(line.split()) img_filepath= line_value(line.split())
if img_filepath: if img_filepath: