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 /io_scene_gltf2/blender/exp/gltf2_blender_image.py | |
parent | 54d8bdf1f15597b9f6e1aaf308b5a0d5df785552 (diff) |
glTF exporter: fix default date type at numpy array creation
Diffstat (limited to 'io_scene_gltf2/blender/exp/gltf2_blender_image.py')
-rw-r--r-- | io_scene_gltf2/blender/exp/gltf2_blender_image.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |