glTF exporter: for separated glTF, use tab as indent

This commit is contained in:
Julien Duroure 2023-01-27 18:47:45 +01:00
parent fc8bd7d6d4
commit 07157fbb8f
2 changed files with 4 additions and 3 deletions

View File

@ -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',

View File

@ -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",