[Bf-extensions-cvs] [07157fbb] master: glTF exporter: for separated glTF, use tab as indent
Julien Duroure
noreply at git.blender.org
Fri Jan 27 18:48:49 CET 2023
Commit: 07157fbb8fe590b868ab2e65af04a5d723d4a45f
Author: Julien Duroure
Date: Fri Jan 27 18:47:45 2023 +0100
Branches: master
https://developer.blender.org/rBA07157fbb8fe590b868ab2e65af04a5d723d4a45f
glTF exporter: for separated glTF, use tab as indent
===================================================================
M io_scene_gltf2/__init__.py
M io_scene_gltf2/io/exp/gltf2_io_export.py
===================================================================
diff --git a/io_scene_gltf2/__init__.py b/io_scene_gltf2/__init__.py
index 1f038922..3c817ff4 100755
--- a/io_scene_gltf2/__init__.py
+++ b/io_scene_gltf2/__init__.py
@@ -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, 5, 19),
+ "version": (3, 5, 20),
'blender': (3, 4, 0),
'location': 'File > Import-Export',
'description': 'Import-Export as glTF 2.0',
diff --git a/io_scene_gltf2/io/exp/gltf2_io_export.py b/io_scene_gltf2/io/exp/gltf2_io_export.py
index aee74ba9..ab4149bd 100755
--- a/io_scene_gltf2/io/exp/gltf2_io_export.py
+++ b/io_scene_gltf2/io/exp/gltf2_io_export.py
@@ -29,9 +29,10 @@ def save_gltf(gltf, export_settings, encoder, glb_buffer):
gltf_format = GlTF_format(None, (',', ':'))
if export_settings['gltf_format'] != 'GLB':
- gltf_format.indent = 4
+ gltf_format.indent = "\t"
# The comma is typically followed by a newline, so no trailing whitespace is needed on it.
- gltf_format.separators = (',', ' : ')
+ # No space before and after ':' to save space
+ gltf_format.separators = (',', ':')
sort_order = [
"asset",
More information about the Bf-extensions-cvs
mailing list