diff options
author | Julien Duroure <julien.duroure@gmail.com> | 2022-10-10 18:30:01 +0300 |
---|---|---|
committer | Julien Duroure <julien.duroure@gmail.com> | 2022-10-10 18:30:01 +0300 |
commit | 77158558c10eafe6777562d1b8daaf6d1db70d88 (patch) | |
tree | baec3647d8e73cd45a36e118fbc50a22f6dfa157 | |
parent | 83290c67a63b216713a1f2e1d56f67aeddb34178 (diff) |
glTF exporter: Fix export all weight influences
-rwxr-xr-x | io_scene_gltf2/__init__.py | 2 | ||||
-rwxr-xr-x | io_scene_gltf2/blender/exp/gltf2_blender_gather_primitive_attributes.py | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/io_scene_gltf2/__init__.py b/io_scene_gltf2/__init__.py index af851de8..98eb2353 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, 4, 34), + "version": (3, 4, 35), '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 ce2f9a59..565378d1 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 @@ -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( |