Skip to content
Snippets Groups Projects
Commit cebbb4ee authored by Campbell Barton's avatar Campbell Barton
Browse files

metaball material export was broken.

parent d9ebe78b
No related branches found
No related tags found
No related merge requests found
......@@ -584,8 +584,10 @@ def write_pov(filename, scene=None, info_callback=None):
else:
trans = 0.0
material_finish = materialNames[material.name]
file.write('pigment {rgbft<%.3g, %.3g, %.3g, %.3g, %.3g>} finish {%s} }\n' % \
(diffuse_color[0], diffuse_color[1], diffuse_color[2], 1.0 - material.alpha, trans, materialNames[material.name]))
(diffuse_color[0], diffuse_color[1], diffuse_color[2], 1.0 - material.alpha, trans, safety(material_finish, Level=2)))
else:
file.write('pigment {rgb<1 1 1>} finish {%s} }\n' % DEF_MAT_NAME) # Write the finish last.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment