From 9638ec565580fd611577249fda938a5cd1146694 Mon Sep 17 00:00:00 2001
From: Julien Duroure <julien.duroure@gmail.com>
Date: Mon, 15 Aug 2022 10:22:13 +0200
Subject: [PATCH] glTF exporter: add comment

---
 .../exp/gltf2_blender_gather_primitive_attributes.py       | 7 +++++++
 1 file changed, 7 insertions(+)

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 8572d185b..1af588b9a 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
-- 
GitLab