From 6706c91ecf7dd759293b5a7e0b2b75e3c1d7c2e1 Mon Sep 17 00:00:00 2001 From: Julien Duroure Date: Sun, 2 Dec 2018 16:44:57 +0100 Subject: glTF: Fix light export + export options refactoring --- io_scene_gltf2/io/exp/gltf2_io_export.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'io_scene_gltf2/io') diff --git a/io_scene_gltf2/io/exp/gltf2_io_export.py b/io_scene_gltf2/io/exp/gltf2_io_export.py index ebfad744..286d4e75 100755 --- a/io_scene_gltf2/io/exp/gltf2_io_export.py +++ b/io_scene_gltf2/io/exp/gltf2_io_export.py @@ -32,7 +32,7 @@ def save_gltf(glTF, export_settings, encoder, glb_buffer): indent = None separators = separators = (',', ':') - if export_settings['gltf_format'] == 'ASCII': + if export_settings['gltf_format'] != 'GLB': indent = 4 # The comma is typically followed by a newline, so no trailing whitespace is needed on it. separators = separators = (',', ' : ') @@ -41,7 +41,7 @@ def save_gltf(glTF, export_settings, encoder, glb_buffer): # - if export_settings['gltf_format'] == 'ASCII': + if export_settings['gltf_format'] != 'GLB': file = open(export_settings['gltf_filepath'], "w", encoding="utf8", newline="\n") file.write(glTF_encoded) file.write("\n") -- cgit v1.2.3