[Bf-extensions-cvs] [ed9b7805] blender-v3.3-release: glTF exporter: Fix crash when original texture export is packed
Julien Duroure
noreply at git.blender.org
Thu Sep 22 10:37:03 CEST 2022
Commit: ed9b7805986814c5a2c330eaa0b156eef55915d4
Author: Julien Duroure
Date: Mon Sep 19 08:41:48 2022 +0200
Branches: blender-v3.3-release
https://developer.blender.org/rBAed9b7805986814c5a2c330eaa0b156eef55915d4
glTF exporter: Fix crash when original texture export is packed
===================================================================
M io_scene_gltf2/__init__.py
M io_scene_gltf2/blender/exp/gltf2_blender_gather_image.py
===================================================================
diff --git a/io_scene_gltf2/__init__.py b/io_scene_gltf2/__init__.py
index 52ae1242..26377a72 100755
--- a/io_scene_gltf2/__init__.py
+++ b/io_scene_gltf2/__init__.py
@@ -4,7 +4,7 @@
bl_info = {
'name': 'glTF 2.0 format',
'author': 'Julien Duroure, Scurest, Norbert Nopper, Urs Hanselmann, Moritz Becher, Benjamin Schmithüsen, Jim Eckerlein, and many external contributors',
- "version": (3, 3, 27),
+ "version": (3, 3, 28),
'blender': (3, 3, 0),
'location': 'File > Import-Export',
'description': 'Import-Export as glTF 2.0',
diff --git a/io_scene_gltf2/blender/exp/gltf2_blender_gather_image.py b/io_scene_gltf2/blender/exp/gltf2_blender_gather_image.py
index 81e79a50..1e815e9b 100755
--- a/io_scene_gltf2/blender/exp/gltf2_blender_gather_image.py
+++ b/io_scene_gltf2/blender/exp/gltf2_blender_gather_image.py
@@ -41,7 +41,7 @@ def gather_image(
# In case we can't retrieve image (for example packed images, with original moved)
# We don't create invalid image without uri
factor_uri = None
- if uri is None: return None
+ if uri is None: return None, None
buffer_view, factor_buffer_view = __gather_buffer_view(image_data, mime_type, name, export_settings)
More information about the Bf-extensions-cvs
mailing list