diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2015-05-19 13:50:22 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2015-05-19 13:50:22 +0300 |
commit | a4231350950136996af8981bceebb8180110756f (patch) | |
tree | 9f904e550fbc4cc5acd078d691052c99bee022b1 /io_scene_fbx | |
parent | 0136e9077946a4db81506d0b89f2681ba3b1073f (diff) |
FBX export: Do not write skinning weights/indices if empty.
Diffstat (limited to 'io_scene_fbx')
-rw-r--r-- | io_scene_fbx/export_fbx_bin.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/io_scene_fbx/export_fbx_bin.py b/io_scene_fbx/export_fbx_bin.py index 8f9f53cb..62926f47 100644 --- a/io_scene_fbx/export_fbx_bin.py +++ b/io_scene_fbx/export_fbx_bin.py @@ -1465,8 +1465,9 @@ def fbx_data_armature_elements(root, arm_obj, scene_data): # No idea what that user data might be... fbx_userdata = elem_data_single_string(fbx_clstr, b"UserData", b"") fbx_userdata.add_string(b"") - elem_data_single_int32_array(fbx_clstr, b"Indexes", indices) - elem_data_single_float64_array(fbx_clstr, b"Weights", weights) + if indices: + elem_data_single_int32_array(fbx_clstr, b"Indexes", indices) + elem_data_single_float64_array(fbx_clstr, b"Weights", weights) # Transform, TransformLink and TransformAssociateModel matrices... # They seem to be doublons of BindPose ones??? Have armature (associatemodel) in addition, though. # WARNING! Even though official FBX API presents Transform in global space, |