[Bf-extensions-cvs] [97cf9103] master: glTF exporter: fix default date type at numpy array creation
Julien Duroure
noreply at git.blender.org
Sun Jul 4 17:50:31 CEST 2021
Commit: 97cf91034d0d5255269a0b8c506f2cdc8e81b789
Author: Julien Duroure
Date: Sun Jul 4 17:50:07 2021 +0200
Branches: master
https://developer.blender.org/rBA97cf91034d0d5255269a0b8c506f2cdc8e81b789
glTF exporter: fix default date type at numpy array creation
===================================================================
M io_scene_gltf2/__init__.py
M io_scene_gltf2/blender/exp/gltf2_blender_image.py
===================================================================
diff --git a/io_scene_gltf2/__init__.py b/io_scene_gltf2/__init__.py
index c09dc7d3..0f9ce6bb 100755
--- a/io_scene_gltf2/__init__.py
+++ b/io_scene_gltf2/__init__.py
@@ -15,7 +15,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": (1, 7, 13),
+ "version": (1, 7, 14),
'blender': (2, 91, 0),
'location': 'File > Import-Export',
'description': 'Import-Export as glTF 2.0',
diff --git a/io_scene_gltf2/blender/exp/gltf2_blender_image.py b/io_scene_gltf2/blender/exp/gltf2_blender_image.py
index ae16a26b..a0952bb5 100644
--- a/io_scene_gltf2/blender/exp/gltf2_blender_image.py
+++ b/io_scene_gltf2/blender/exp/gltf2_blender_image.py
@@ -133,7 +133,7 @@ class ExportImage:
if not images:
# No ImageFills; use a 1x1 white pixel
- pixels = np.array([1.0, 1.0, 1.0, 1.0])
+ pixels = np.array([1.0, 1.0, 1.0, 1.0], np.float32)
return self.__encode_from_numpy_array(pixels, (1, 1))
width = max(image.size[0] for image in images)
More information about the Bf-extensions-cvs
mailing list