Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2018-01-08 13:02:31 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2018-01-08 13:02:31 +0300
commit808565a7705fd0188e6fba1dc56db9c700860ce6 (patch)
treeea4521807960157079d3315962d2556df457b93e /io_scene_fbx
parentf5536e5e49c34dfc0a7b8990257cd393339e23c6 (diff)
Fix T53707: Error on export FBX object [PointLighs].
Inverse Coefficients decay method was added later, never made it to FBX exporter. Note that this is very limited approxiamtion/simplification here, we cannot really export this correctly. To be backported to 2.79a.
Diffstat (limited to 'io_scene_fbx')
-rw-r--r--io_scene_fbx/__init__.py2
-rw-r--r--io_scene_fbx/fbx_utils.py1
2 files changed, 2 insertions, 1 deletions
diff --git a/io_scene_fbx/__init__.py b/io_scene_fbx/__init__.py
index 943df0b4..b6fdf1d2 100644
--- a/io_scene_fbx/__init__.py
+++ b/io_scene_fbx/__init__.py
@@ -21,7 +21,7 @@
bl_info = {
"name": "FBX format",
"author": "Campbell Barton, Bastien Montagne, Jens Restemeier",
- "version": (3, 8, 4),
+ "version": (3, 8, 5),
"blender": (2, 79, 1),
"location": "File > Import-Export",
"description": "FBX IO meshes, UV's, vertex colors, materials, textures, cameras, lamps and actions",
diff --git a/io_scene_fbx/fbx_utils.py b/io_scene_fbx/fbx_utils.py
index 16a8256f..368e8685 100644
--- a/io_scene_fbx/fbx_utils.py
+++ b/io_scene_fbx/fbx_utils.py
@@ -94,6 +94,7 @@ FBX_LIGHT_DECAY_TYPES = {
'CONSTANT': 0, # None.
'INVERSE_LINEAR': 1, # Linear.
'INVERSE_SQUARE': 2, # Quadratic.
+ 'INVERSE_COEFFICIENTS': 2, # Quadratic...
'CUSTOM_CURVE': 2, # Quadratic.
'LINEAR_QUADRATIC_WEIGHTED': 2, # Quadratic.
}