diff options
author | Julien Duroure <julien.duroure@gmail.com> | 2022-08-15 11:22:13 +0300 |
---|---|---|
committer | Julien Duroure <julien.duroure@gmail.com> | 2022-08-17 00:22:44 +0300 |
commit | 9638ec565580fd611577249fda938a5cd1146694 (patch) | |
tree | 4b6f93c115aed4d7b9b3747d12bd7502319f9a70 /io_scene_gltf2/blender/exp/gltf2_blender_gather_primitive_attributes.py | |
parent | d9d24cef3eac7e4ab8529fcbc3a41adad4e75524 (diff) |
glTF exporter: add comment
Diffstat (limited to 'io_scene_gltf2/blender/exp/gltf2_blender_gather_primitive_attributes.py')
-rwxr-xr-x | io_scene_gltf2/blender/exp/gltf2_blender_gather_primitive_attributes.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/io_scene_gltf2/blender/exp/gltf2_blender_gather_primitive_attributes.py b/io_scene_gltf2/blender/exp/gltf2_blender_gather_primitive_attributes.py index 8572d185..1af588b9 100755 --- a/io_scene_gltf2/blender/exp/gltf2_blender_gather_primitive_attributes.py +++ b/io_scene_gltf2/blender/exp/gltf2_blender_gather_primitive_attributes.py @@ -173,6 +173,13 @@ def __gather_skins(blender_primitive, export_settings): max_bone_set_index += 1 max_bone_set_index -= 1 + # Here, a set represents a group of 4 weights. + # So max_bone_set_index value: + # if -1 => No weights + # if 1 => Max 4 weights + # if 2 => Max 8 weights + # etc... + # If no skinning if max_bone_set_index < 0: return attributes |