glTF exporter: Fix export all weight influences
This commit is contained in:
parent
83290c67a6
commit
77158558c1
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
|
@ -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, 4, 34),
|
||||
"version": (3, 4, 35),
|
||||
'blender': (3, 3, 0),
|
||||
'location': 'File > Import-Export',
|
||||
'description': 'Import-Export as glTF 2.0',
|
||||
|
|
|
@ -127,6 +127,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(
|
||||
|
|
Loading…
Reference in New Issue