diff options
author | Julien Duroure <julien.duroure@gmail.com> | 2022-01-20 20:36:14 +0300 |
---|---|---|
committer | Julien Duroure <julien.duroure@gmail.com> | 2022-01-20 20:36:14 +0300 |
commit | 38be61ebb868c0b56c140286af8720b2e7d0de11 (patch) | |
tree | 7cd238b0f76500dd9769084b690b77d03611a9d7 /io_scene_gltf2/blender | |
parent | 97d4577285f5f7a75f663559a6a3ad6c692c087a (diff) |
glTF exporter: images may be needlessly re-encoded in some cases
Diffstat (limited to 'io_scene_gltf2/blender')
-rw-r--r-- | io_scene_gltf2/blender/exp/gltf2_blender_image.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/io_scene_gltf2/blender/exp/gltf2_blender_image.py b/io_scene_gltf2/blender/exp/gltf2_blender_image.py index 8ac272d8..fc41b7f2 100644 --- a/io_scene_gltf2/blender/exp/gltf2_blender_image.py +++ b/io_scene_gltf2/blender/exp/gltf2_blender_image.py @@ -189,8 +189,7 @@ class ExportImage: def __encode_from_image(self, image: bpy.types.Image) -> bytes: # See if there is an existing file we can use. data = None - if image.source == 'FILE' and image.file_format == self.file_format and \ - not image.is_dirty: + if image.source == 'FILE' and not image.is_dirty: if image.packed_file is not None: data = image.packed_file.data else: |