diff options
author | Julien Duroure <julien.duroure@gmail.com> | 2022-02-12 16:07:32 +0300 |
---|---|---|
committer | Julien Duroure <julien.duroure@gmail.com> | 2022-02-12 16:07:32 +0300 |
commit | 2fab0283474d136201bf2b8f947e8f96fa71b838 (patch) | |
tree | 0c98511b2d9cc27a569d673e6bd295d9e5fd6dd6 /io_scene_gltf2/blender/exp/gltf2_blender_gather_texture.py | |
parent | 693a5d4fa7eefafe322d3494245443d7978345ba (diff) | |
parent | 4003baf03d7d6d78ef4c16be79c73edadf87759c (diff) |
Merge branch 'blender-v3.1-release'
Diffstat (limited to 'io_scene_gltf2/blender/exp/gltf2_blender_gather_texture.py')
-rwxr-xr-x | io_scene_gltf2/blender/exp/gltf2_blender_gather_texture.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/io_scene_gltf2/blender/exp/gltf2_blender_gather_texture.py b/io_scene_gltf2/blender/exp/gltf2_blender_gather_texture.py index 88aa6290..0761b19c 100755 --- a/io_scene_gltf2/blender/exp/gltf2_blender_gather_texture.py +++ b/io_scene_gltf2/blender/exp/gltf2_blender_gather_texture.py @@ -24,6 +24,7 @@ def gather_texture( :param export_settings: configuration of the export :return: a glTF 2.0 texture with sampler and source embedded (will be converted to references by the exporter) """ + if not __filter_texture(blender_shader_sockets, export_settings): return None @@ -45,6 +46,9 @@ def gather_texture( def __filter_texture(blender_shader_sockets, export_settings): + # User doesn't want to export textures + if export_settings['gltf_image_format'] == "NONE": + return None return True |