Merge branch 'blender-v2.82-release'
This commit is contained in:
commit
5021c0955d
|
@ -15,7 +15,7 @@
|
|||
bl_info = {
|
||||
'name': 'glTF 2.0 format',
|
||||
'author': 'Julien Duroure, Norbert Nopper, Urs Hanselmann, Moritz Becher, Benjamin Schmithüsen, Jim Eckerlein, and many external contributors',
|
||||
"version": (1, 2, 11),
|
||||
"version": (1, 2, 12),
|
||||
'blender': (2, 81, 6),
|
||||
'location': 'File > Import-Export',
|
||||
'description': 'Import-Export as glTF 2.0',
|
||||
|
|
|
@ -286,6 +286,7 @@ class ExportImage:
|
|||
tmp_image = None
|
||||
try:
|
||||
tmp_image = image.copy()
|
||||
tmp_image.update()
|
||||
if image.is_dirty:
|
||||
tmp_image.pixels = image.pixels[:]
|
||||
|
||||
|
@ -300,9 +301,6 @@ def _encode_temp_image(tmp_image: bpy.types.Image, file_format: str) -> bytes:
|
|||
tmpfilename = tmpdirname + '/img'
|
||||
tmp_image.filepath_raw = tmpfilename
|
||||
|
||||
# NOT A TYPO!!! If you delete this line, the
|
||||
# assignment on the next line will not work.
|
||||
tmp_image.file_format
|
||||
tmp_image.file_format = file_format
|
||||
|
||||
tmp_image.save()
|
||||
|
|
Loading…
Reference in New Issue