diff options
author | Julien Duroure <julien.duroure@gmail.com> | 2020-08-08 17:09:30 +0300 |
---|---|---|
committer | Julien Duroure <julien.duroure@gmail.com> | 2020-08-08 17:09:30 +0300 |
commit | dbdd04aeedf08c218c75fdbfa3a98d5e77fcbd1f (patch) | |
tree | 8403de7f52790dfa0712528e20162a74fef79543 /io_scene_gltf2/blender | |
parent | ce7f98b3c48dff89c4135c82784be6320d40314e (diff) | |
parent | 386bb5eaa473fb4934a60a90999bf10061ebad99 (diff) |
Merge branch 'blender-v2.90-release'
Diffstat (limited to 'io_scene_gltf2/blender')
-rwxr-xr-x | io_scene_gltf2/blender/exp/gltf2_blender_extract.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/io_scene_gltf2/blender/exp/gltf2_blender_extract.py b/io_scene_gltf2/blender/exp/gltf2_blender_extract.py index c605a609..eef05044 100755 --- a/io_scene_gltf2/blender/exp/gltf2_blender_extract.py +++ b/io_scene_gltf2/blender/exp/gltf2_blender_extract.py @@ -286,6 +286,7 @@ def extract_primitives(glTF, blender_mesh, library, blender_object, blender_vert bones.append((joint, weight)) bones.sort(key=lambda x: x[1], reverse=True) bones = tuple(bones) + if not bones: bones = ((0, 1.0),) # HACK for verts with zero weight (#308) vert += (bones,) for shape_key in shape_keys: |