Images: support packing edited images as OpenEXR or PNG.

This way float and multilayer images can now be packed without data loss. This
removes the as_png option and always uses the appropriate file format depending
on the image contents.
This commit is contained in:
2016-02-20 14:52:36 +01:00
parent 690ed63eb5
commit 64bcdd65bf
5 changed files with 19 additions and 92 deletions

View File

@@ -132,7 +132,7 @@ class SaveDirty(Operator):
" can't be re-packed" %
(image.name, image.library.filepath))
else:
image.pack(as_png=True)
image.pack()
else:
filepath = bpy.path.abspath(image.filepath,
library=image.library)