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

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

parent 70f5863c
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, 3, 4), "version": (3, 3, 5),
'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',
......
...@@ -12,7 +12,12 @@ def get_sk_drivers(blender_armature_uuid, export_settings): ...@@ -12,7 +12,12 @@ def get_sk_drivers(blender_armature_uuid, export_settings):
drivers = [] 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": if export_settings['vtree'].nodes[child_uuid].blender_type == "BONE":
continue continue
......
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