[Bf-extensions-cvs] [8db299e] master: Fix for FBX exporting Area Lights
Campbell Barton
noreply at git.blender.org
Tue Apr 29 15:43:27 CEST 2014
Commit: 8db299ec050f874a8872b19120fb28a8866983df
Author: Campbell Barton
Date: Tue Apr 29 23:19:49 2014 +1000
https://developer.blender.org/rBA8db299ec050f874a8872b19120fb28a8866983df
Fix for FBX exporting Area Lights
===================================================================
M io_scene_fbx/export_fbx_bin.py
===================================================================
diff --git a/io_scene_fbx/export_fbx_bin.py b/io_scene_fbx/export_fbx_bin.py
index c81c1bc..464ed5d 100644
--- a/io_scene_fbx/export_fbx_bin.py
+++ b/io_scene_fbx/export_fbx_bin.py
@@ -1134,7 +1134,7 @@ def fbx_data_lamp_elements(root, lamp, scene_data):
do_shadow = False
shadow_color = Vector((0.0, 0.0, 0.0))
if lamp.type not in {'HEMI'}:
- if lamp.type not in {'SUN'}:
+ if lamp.type not in {'SUN', 'AREA'}:
decay_type = FBX_LIGHT_DECAY_TYPES[lamp.falloff_type]
do_light = (not lamp.use_only_shadow) and (lamp.use_specular or lamp.use_diffuse)
do_shadow = lamp.shadow_method not in {'NOSHADOW'}
More information about the Bf-extensions-cvs
mailing list