diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-05-07 01:47:24 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-05-07 01:47:24 +0400 |
commit | 3d60c4e746f08a3a7e583ea4461122f3358e21da (patch) | |
tree | cd3a2c3813b09d8f1fa65a1c77ae0affa396aa4f /release | |
parent | cf93cad415e6b4f3952220c69977f74d29fb6533 (diff) |
[#18702] FBX exported hemi light crashes maya
- bugfix, off by 1 when clamping lamp types, caused blender to write an invalid lamp type
- error in last commit (renamed function)
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/export_fbx.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/export_fbx.py b/release/scripts/export_fbx.py index 0a38d63049d..707ab9ebbb7 100644 --- a/release/scripts/export_fbx.py +++ b/release/scripts/export_fbx.py @@ -1002,7 +1002,7 @@ def write(filename, batch_objects = None, \ #eDIRECTIONAL #eSPOT light_type = light.type - if light_type > 3: light_type = 0 + if light_type > 2: light_type = 1 # hemi and area lights become directional mode = light.mode if mode & Blender.Lamp.Modes.RayShadow or mode & Blender.Lamp.Modes.Shadows: |