glTF exporter: Make sure that addon that changes root gltf are taken into account
This commit is contained in:
parent
97cf91034d
commit
0aa618c849
|
@ -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, 14),
|
||||
"version": (1, 7, 15),
|
||||
'blender': (2, 91, 0),
|
||||
'location': 'File > Import-Export',
|
||||
'description': 'Import-Export as glTF 2.0',
|
||||
|
|
|
@ -63,11 +63,13 @@ def __export(export_settings):
|
|||
__gather_gltf(exporter, export_settings)
|
||||
buffer = __create_buffer(exporter, export_settings)
|
||||
exporter.finalize_images()
|
||||
json = __fix_json(exporter.glTF.to_dict())
|
||||
|
||||
export_user_extensions('gather_gltf_hook', export_settings, exporter.glTF)
|
||||
exporter.traverse_extensions()
|
||||
|
||||
# now that addons possibly add some fields in json, we can fix in needed
|
||||
json = __fix_json(exporter.glTF.to_dict())
|
||||
|
||||
return json, buffer
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue