glTF exporter: fix default date type at numpy array creation
This commit is contained in:
parent
54d8bdf1f1
commit
97cf91034d
|
@ -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',
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue