Attempt to fix image unpack
This commit is contained in:
parent
4de8ffec1b
commit
9141f8d7c4
|
@ -1508,7 +1508,7 @@ def make_texture(image_node, tex_name, matname=None):
|
||||||
if do_convert:
|
if do_convert:
|
||||||
if not os.path.isfile(unpack_filepath):
|
if not os.path.isfile(unpack_filepath):
|
||||||
fmt = 'PNG' if new_ext == 'png' else 'JPEG'
|
fmt = 'PNG' if new_ext == 'png' else 'JPEG'
|
||||||
arm.utils.unpack_image(image, unpack_filepath, file_format=fmt)
|
arm.utils.convert_image(image, unpack_filepath, file_format=fmt)
|
||||||
else:
|
else:
|
||||||
|
|
||||||
# Write bytes if size is different or file does not exist yet
|
# Write bytes if size is different or file does not exist yet
|
||||||
|
|
Loading…
Reference in a new issue