From 7ff0b59e875f3fe2dc3b7980f754a47c25ee41bf Mon Sep 17 00:00:00 2001
From: Bartek Skorupa <bartekskorupa@bartekskorupa.com>
Date: Tue, 13 Mar 2012 14:04:27 +0000
Subject: [PATCH] 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'

---
 io_export_after_effects.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/io_export_after_effects.py b/io_export_after_effects.py
index cb9aa1e23..8d5d4eee4 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
-- 
GitLab