diff options
author | Julien Duroure <julien.duroure@gmail.com> | 2021-07-04 18:50:07 +0300 |
---|---|---|
committer | Julien Duroure <julien.duroure@gmail.com> | 2021-07-04 18:50:07 +0300 |
commit | 97cf91034d0d5255269a0b8c506f2cdc8e81b789 (patch) | |
tree | 4a9637e2afb7fca325a451eed17f1dc19185cd55 | |
parent | 54d8bdf1f15597b9f6e1aaf308b5a0d5df785552 (diff) |
glTF exporter: fix default date type at numpy array creation
-rwxr-xr-x | io_scene_gltf2/__init__.py | 2 | ||||
-rw-r--r-- | io_scene_gltf2/blender/exp/gltf2_blender_image.py | 2 |
2 files changed, 2 insertions, 2 deletions
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) |