[Bf-extensions-cvs] [6f168d59] blender-v3.3-release: glTF exporter: Fix export all weight influences

Julien Duroure noreply at git.blender.org
Mon Nov 28 15:23:54 CET 2022


Commit: 6f168d59032c8d8d73b7593ee121820ac5ba4dae
Author: Julien Duroure
Date:   Mon Oct 10 17:30:01 2022 +0200
Branches: blender-v3.3-release
https://developer.blender.org/rBA6f168d59032c8d8d73b7593ee121820ac5ba4dae

glTF exporter: Fix export all weight influences

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

M	io_scene_gltf2/__init__.py
M	io_scene_gltf2/blender/exp/gltf2_blender_gather_primitive_attributes.py

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

diff --git a/io_scene_gltf2/__init__.py b/io_scene_gltf2/__init__.py
index 93303ee3..917a634b 100755
--- a/io_scene_gltf2/__init__.py
+++ b/io_scene_gltf2/__init__.py
@@ -4,7 +4,7 @@
 bl_info = {
     'name': 'glTF 2.0 format',
     'author': 'Julien Duroure, Scurest, Norbert Nopper, Urs Hanselmann, Moritz Becher, Benjamin Schmithüsen, Jim Eckerlein, and many external contributors',
-    "version": (3, 3, 33),
+    "version": (3, 3, 34),
     'blender': (3, 3, 0),
     'location': 'File > Import-Export',
     'description': 'Import-Export as glTF 2.0',
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..5053bbad 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
@@ -219,6 +219,7 @@ def __gather_skins(blender_primitive, export_settings):
     # Normalize weights so they sum to 1
     weight_total = weight_total.reshape(-1, 1)
     for s in range(0, max_bone_set_index+1):
+        weight_id = 'WEIGHTS_' + str(s)
         weight_arrs[s] /= weight_total
 
         weight = array_to_accessor(



More information about the Bf-extensions-cvs mailing list