Skip to content
Snippets Groups Projects
Commit 77158558 authored by Julien Duroure's avatar Julien Duroure
Browse files

glTF exporter: Fix export all weight influences

parent 83290c67
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
bl_info = { bl_info = {
'name': 'glTF 2.0 format', 'name': 'glTF 2.0 format',
'author': 'Julien Duroure, Scurest, Norbert Nopper, Urs Hanselmann, Moritz Becher, Benjamin Schmithüsen, Jim Eckerlein, and many external contributors', '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), 'blender': (3, 3, 0),
'location': 'File > Import-Export', 'location': 'File > Import-Export',
'description': 'Import-Export as glTF 2.0', 'description': 'Import-Export as glTF 2.0',
......
...@@ -127,6 +127,7 @@ def __gather_skins(blender_primitive, export_settings): ...@@ -127,6 +127,7 @@ def __gather_skins(blender_primitive, export_settings):
# Normalize weights so they sum to 1 # Normalize weights so they sum to 1
weight_total = weight_total.reshape(-1, 1) weight_total = weight_total.reshape(-1, 1)
for s in range(0, max_bone_set_index+1): for s in range(0, max_bone_set_index+1):
weight_id = 'WEIGHTS_' + str(s)
weight_arrs[s] /= weight_total weight_arrs[s] /= weight_total
weight = array_to_accessor( weight = array_to_accessor(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment