glTF exporter: Regression: Fix T98912 - export driven SK when mesh parented to bone

This commit is contained in:
Julien Duroure 2022-06-17 07:41:02 +02:00
parent 70f5863c30
commit aa353e127c
Notes: blender-bot 2023-02-14 18:19:20 +01:00
Referenced by issue blender/blender#98661: 3.2: Potential candidates for corrective releases
Referenced by issue blender/blender#98661, 3.2: Potential candidates for corrective releases
Referenced by issue #98912, Export to GLB - Shape Key new behavior Bug
2 changed files with 7 additions and 2 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, 4),
"version": (3, 3, 5),
'blender': (3, 3, 0),
'location': 'File > Import-Export',
'description': 'Import-Export as glTF 2.0',

View File

@ -12,7 +12,12 @@ def get_sk_drivers(blender_armature_uuid, export_settings):
drivers = []
for child_uuid in export_settings['vtree'].nodes[blender_armature_uuid].children:
# Take into account skinned mesh, and mesh parented to a bone of the armature
children_list = export_settings['vtree'].nodes[blender_armature_uuid].children
for bone in export_settings['vtree'].get_all_bones(blender_armature_uuid):
children_list.extend(export_settings['vtree'].nodes[bone].children)
for child_uuid in children_list:
if export_settings['vtree'].nodes[child_uuid].blender_type == "BONE":
continue