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>2018-12-02 18:44:57 +0300
committerJulien Duroure <julien.duroure@gmail.com>2018-12-02 18:44:57 +0300
commit6706c91ecf7dd759293b5a7e0b2b75e3c1d7c2e1 (patch)
tree1a2e3a6ad0514f259793fa4562207f5e9f9d3409 /io_scene_gltf2/io
parent6e91aa7bedbe09045d1218fc90367d405a722c16 (diff)
glTF: Fix light export + export options refactoring
Diffstat (limited to 'io_scene_gltf2/io')
-rwxr-xr-xio_scene_gltf2/io/exp/gltf2_io_export.py4
1 files changed, 2 insertions, 2 deletions
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")