[Bf-extensions-cvs] [9638ec56] master: glTF exporter: add comment

Julien Duroure noreply at git.blender.org
Tue Aug 16 23:22:51 CEST 2022


Commit: 9638ec565580fd611577249fda938a5cd1146694
Author: Julien Duroure
Date:   Mon Aug 15 10:22:13 2022 +0200
Branches: master
https://developer.blender.org/rBA9638ec565580fd611577249fda938a5cd1146694

glTF exporter: add comment

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

M	io_scene_gltf2/blender/exp/gltf2_blender_gather_primitive_attributes.py

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

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



More information about the Bf-extensions-cvs mailing list