diff options
author | Bartek Skorupa <bartekskorupa@bartekskorupa.com> | 2012-03-13 18:04:27 +0400 |
---|---|---|
committer | Bartek Skorupa <bartekskorupa@bartekskorupa.com> | 2012-03-13 18:04:27 +0400 |
commit | 7ff0b59e875f3fe2dc3b7980f754a47c25ee41bf (patch) | |
tree | 5673a72cc41a71255fc6686d9b1c3354e9611dc2 /io_export_after_effects.py | |
parent | fd057f74b23bb148191eaed35effd0abf1295d7e (diff) |
Bug fix. Lamps cone angle calculations returned error as import of pi has been removed. Now corrected the formula to match my new convention to use 'degrees' instead of 'pi'
Diffstat (limited to 'io_export_after_effects.py')
-rw-r--r-- | io_export_after_effects.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_export_after_effects.py b/io_export_after_effects.py index cb9aa1e2..8d5d4eee 100644 --- a/io_export_after_effects.py +++ b/io_export_after_effects.py @@ -504,7 +504,7 @@ def write_jsx_file(file, data, selection, include_animation, include_active_cam, js_data['lights'][name_ae]['energy_static'] = energy js_data['lights'][name_ae]['color_static'] = color if type == 'SPOT': - cone_angle = '[%f],' % (ob[0].data.spot_size / pi * 180.0) + cone_angle = '[%f],' % (degrees(ob[0].data.spot_size)) cone_feather = '[%f],' % (ob[0].data.spot_blend * 100.0) js_data['lights'][name_ae]['cone_angle'] += cone_angle js_data['lights'][name_ae]['cone_feather'] += cone_feather |