[Bf-extensions-cvs] [472760d] master: FBX export: Support empty vgroups!

Bastien Montagne noreply at git.blender.org
Sun May 4 16:41:08 CEST 2014


Commit: 472760d588d047e6637b96a154262f72dac164f8
Author: Bastien Montagne
Date:   Sun May 4 16:40:00 2014 +0200
https://developer.blender.org/rBA472760d588d047e6637b96a154262f72dac164f8

FBX export: Support empty vgroups!

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

M	io_scene_fbx/export_fbx_bin.py

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

diff --git a/io_scene_fbx/export_fbx_bin.py b/io_scene_fbx/export_fbx_bin.py
index a71f5c8..0b420f8 100644
--- a/io_scene_fbx/export_fbx_bin.py
+++ b/io_scene_fbx/export_fbx_bin.py
@@ -1877,7 +1877,7 @@ def fbx_data_armature_elements(root, armature, scene_data):
                 # Note we still write a cluster for bones not affecting the mesh, to get 'rest pose' data
                 # (the TransformBlah matrices).
                 vg_idx = bo_vg_idx.get(bo.name, None)
-                indices, weights = ((), ()) if vg_idx is None else zip(*vgroups[vg_idx].items())
+                indices, weights = ((), ()) if vg_idx is None or not vgroups[vg_idx] else zip(*vgroups[vg_idx].items())
 
                 # Create the cluster.
                 fbx_clstr = elem_data_single_int64(root, b"Deformer", get_fbxuid_from_key(clstr_key))



More information about the Bf-extensions-cvs mailing list