glTF exporter: Fix export all weight influences

This commit is contained in:
Julien Duroure 2022-10-10 17:30:01 +02:00 committed by Philipp Oeser
parent 80969b3d45
commit 6f168d5903
Notes: blender-bot 2023-02-13 13:22:27 +01:00
Referenced by issue blender/blender#100749: Blender LTS: Maintenance Task 3.3
Referenced by issue blender/blender#100749, Blender LTS: Maintenance Task 3.3
2 changed files with 2 additions and 1 deletions

View File

@ -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',

View File

@ -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(