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>2019-12-03 08:50:20 +0300
committerJulien Duroure <julien.duroure@gmail.com>2019-12-03 08:50:20 +0300
commit2f13b191ad9fa01915cd62739f99598529a21f0b (patch)
treeaf019ca1af3780438f806b079e69cafcb52e902d /io_scene_gltf2/io
parent3314a85d0aa2fa115332ae8676b1a56725718d8f (diff)
glTF exporter: fix spam debug print
Diffstat (limited to 'io_scene_gltf2/io')
-rw-r--r--io_scene_gltf2/io/exp/gltf2_io_draco_compression_extension.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/io_scene_gltf2/io/exp/gltf2_io_draco_compression_extension.py b/io_scene_gltf2/io/exp/gltf2_io_draco_compression_extension.py
index fc65edbd..93c326bb 100644
--- a/io_scene_gltf2/io/exp/gltf2_io_draco_compression_extension.py
+++ b/io_scene_gltf2/io/exp/gltf2_io_draco_compression_extension.py
@@ -40,14 +40,15 @@ def dll_path() -> Path:
return path if path is not None else ''
-def dll_exists() -> bool:
+def dll_exists(quiet=False) -> bool:
"""
Checks whether the DLL path exists.
:return: True if the DLL exists.
"""
exists = dll_path().exists()
- print("'{}' ".format(dll_path().absolute()) + ("exists, draco mesh compression is available" if exists else
- "does not exist, draco mesh compression not available"))
+ if quiet is False:
+ print("'{}' ".format(dll_path().absolute()) + ("exists, draco mesh compression is available" if exists else
+ "does not exist, draco mesh compression not available"))
return exists
@@ -175,7 +176,7 @@ def __compress_primitive(primitive, dll, export_settings):
enable_normals = 'NORMAL' in attributes
tex_coord_attrs = [attributes[attr] for attr in attributes if attr.startswith('TEXCOORD_')]
- print_console('INFO', ('Draco exporter: Compressing primitive %s normal attribute and with %d ' +
+ print_console('INFO', ('Draco exporter: Compressing primitive %s normal attribute and with %d ' +
'texture coordinate attributes, along with positions.') %
('with' if enable_normals else 'without', len(tex_coord_attrs)))