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

fix for povray

parent a695741a
Branches
Tags
No related merge requests found
...@@ -165,8 +165,8 @@ def write_pov(filename, scene=None, info_callback=None): ...@@ -165,8 +165,8 @@ def write_pov(filename, scene=None, info_callback=None):
file.write('\tspotlight\n') file.write('\tspotlight\n')
# Falloff is the main radius from the centre line # Falloff is the main radius from the centre line
file.write('\tfalloff %.2f\n' % (degrees(lamp.spot_size) / 2.0)) # 1 TO 179 FOR BOTH file.write('\tfalloff %.2f\n' % (math.degrees(lamp.spot_size) / 2.0)) # 1 TO 179 FOR BOTH
file.write('\tradius %.6f\n' % ((degrees(lamp.spot_size) / 2.0) * (1.0 - lamp.spot_blend))) file.write('\tradius %.6f\n' % ((math.degrees(lamp.spot_size) / 2.0) * (1.0 - lamp.spot_blend)))
# Blender does not have a tightness equivilent, 0 is most like blender default. # Blender does not have a tightness equivilent, 0 is most like blender default.
file.write('\ttightness 0\n') # 0:10f file.write('\ttightness 0\n') # 0:10f
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment