[Bf-extensions-cvs] [e354e29d] blender-v2.79a-release: Fix T53707: Error on export FBX object [PointLighs].

Bastien Montagne noreply at git.blender.org
Mon Jan 8 11:08:31 CET 2018


Commit: e354e29d801337e13fcffc262b158cdeeff7b698
Author: Bastien Montagne
Date:   Mon Jan 8 11:02:31 2018 +0100
Branches: blender-v2.79a-release
https://developer.blender.org/rBAe354e29d801337e13fcffc262b158cdeeff7b698

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.

Conflicts:
	io_scene_fbx/__init__.py

===================================================================

M	io_scene_fbx/fbx_utils.py

===================================================================

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.
 }



More information about the Bf-extensions-cvs mailing list