Skip to content

Commit

Permalink
glTF export: When user don't export SK, driver corrective SK animatio…
Browse files Browse the repository at this point in the history
…ns must not be exported
  • Loading branch information
julienduroure committed Nov 2, 2022
1 parent 5dbcd4a commit c4dddb8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion io_scene_gltf2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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, 42),
"version": (3, 4, 43),
'blender': (3, 3, 0),
'location': 'File > Import-Export',
'description': 'Import-Export as glTF 2.0',
Expand Down
4 changes: 4 additions & 0 deletions io_scene_gltf2/blender/exp/gltf2_blender_gather_drivers.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
@skdriverdiscovercache
def get_sk_drivers(blender_armature_uuid, export_settings):

# If no SK are exported --> No driver animation to export
if export_settings['gltf_morph'] is False:
return tuple([])

blender_armature = export_settings['vtree'].nodes[blender_armature_uuid].blender_object

drivers = []
Expand Down

0 comments on commit c4dddb8

Please sign in to comment.