Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Duroure <julien.duroure@gmail.com>2021-07-04 18:51:43 +0300
committerJulien Duroure <julien.duroure@gmail.com>2021-07-04 18:51:43 +0300
commit0aa618c849ffef7b11cef81f1712b89e0b0e337b (patch)
tree8e0d836eaf41bb3ba24507e8b1c45dca4a75923c
parent97cf91034d0d5255269a0b8c506f2cdc8e81b789 (diff)
glTF exporter: Make sure that addon that changes root gltf are taken into account
-rwxr-xr-xio_scene_gltf2/__init__.py2
-rwxr-xr-xio_scene_gltf2/blender/exp/gltf2_blender_export.py4
2 files changed, 4 insertions, 2 deletions
diff --git a/io_scene_gltf2/__init__.py b/io_scene_gltf2/__init__.py
index 0f9ce6bb..4c758229 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 ce2b9721..5cb98479 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