diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2016-03-14 08:13:22 +0100 |
---|---|---|
committer | Rémi Verschelde <remi@verschelde.fr> | 2016-03-14 08:13:22 +0100 |
commit | ad29ee328d5d4f1e08fb20248aa4a8ae5fd6c380 (patch) | |
tree | ee44b50d91076807e98431528e28b5fd5c469ab5 | |
parent | 8b9596b7bf4c3e72dc73e10cd0feb986c89a0ebb (diff) | |
parent | 1f4a214987a2c3a9d767af36620d632174fe861d (diff) |
Merge pull request #4046 from bdero/bdero/blender-export-light-size
Correct spot light size conversion in Blender exporter.
-rw-r--r-- | tools/export/blender25/io_scene_dae/export_dae.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/export/blender25/io_scene_dae/export_dae.py b/tools/export/blender25/io_scene_dae/export_dae.py index 7ee0e179b8..370dc359b5 100644 --- a/tools/export/blender25/io_scene_dae/export_dae.py +++ b/tools/export/blender25/io_scene_dae/export_dae.py @@ -1087,7 +1087,7 @@ class DaeExporter: self.writel(S_LAMPS,5,'<color>'+strarr(light.color)+'</color>') att_by_distance = 2.0 / light.distance # convert to linear attenuation self.writel(S_LAMPS,5,'<linear_attenuation>'+str(att_by_distance)+'</linear_attenuation>') - self.writel(S_LAMPS,5,'<falloff_angle>'+str(math.degrees(light.spot_size))+'</falloff_angle>') + self.writel(S_LAMPS,5,'<falloff_angle>'+str(math.degrees(light.spot_size/2))+'</falloff_angle>') self.writel(S_LAMPS,4,'</spot>') |