diff --git a/io_scene_gltf2/__init__.py b/io_scene_gltf2/__init__.py index 0f9ce6bb8754d7590bd272a87f282fc4c9a1413f..4c75822947a4e96d22ca12c7fb5ec5c4324f313e 100755 --- a/io_scene_gltf2/__init__.py +++ b/io_scene_gltf2/__init__.py @@ -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', diff --git a/io_scene_gltf2/blender/exp/gltf2_blender_export.py b/io_scene_gltf2/blender/exp/gltf2_blender_export.py index ce2b97217ac38f5775b5df7fd49b938624921939..5cb9847931cb7dba132f6b91b2a2786fe49290d6 100755 --- a/io_scene_gltf2/blender/exp/gltf2_blender_export.py +++ b/io_scene_gltf2/blender/exp/gltf2_blender_export.py @@ -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