[#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)
This commit is contained in:
Campbell Barton
2009-05-06 21:47:24 +00:00
parent cf93cad415
commit 3d60c4e746
2 changed files with 2 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ def py_version_string():
return '%d.%d' % (ver[0], ver[1])
BF_PYTHON = '/usr'
BF_PYTHON_VERSION = get_py_version_string()
BF_PYTHON_VERSION = py_version_string()
WITH_BF_STATICPYTHON = False
BF_PYTHON_INC = '${BF_PYTHON}/include/python${BF_PYTHON_VERSION}'
BF_PYTHON_BINARY = '${BF_PYTHON}/bin/python${BF_PYTHON_VERSION}'

View File

@@ -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: