glTF export: Add merge_animation_extensions_hook
This commit is contained in:
parent
5d5b748902
commit
669b89d6a5
|
@ -15,7 +15,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": (1, 7, 17),
|
||||
"version": (1, 7, 18),
|
||||
'blender': (2, 91, 0),
|
||||
'location': 'File > Import-Export',
|
||||
'description': 'Import-Export as glTF 2.0',
|
||||
|
|
|
@ -116,6 +116,10 @@ def __gather_animations(blender_scene, export_settings):
|
|||
|
||||
to_delete_idx.append(anim_idx)
|
||||
|
||||
# Merging extensions
|
||||
# Provide a hook to handle extension merging since there is no way to know author intent
|
||||
export_user_extensions('merge_animation_extensions_hook', export_settings, animations[anim_idx], animations[base_animation_idx])
|
||||
|
||||
# Merging extras
|
||||
# Warning, some values can be overwritten if present in multiple merged animations
|
||||
if animations[anim_idx].extras is not None:
|
||||
|
|
Loading…
Reference in New Issue