fix: packed image save error

This commit is contained in:
Swann 2020-10-13 16:58:48 +02:00
parent 1cb9fb410c
commit 8861986213
No known key found for this signature in database
GPG Key ID: E1D3641A7C43AACB

View File

@ -107,7 +107,7 @@ class BlImage(BlDatablock):
if self.instance.packed_file:
filename = Path(bpy.path.abspath(self.instance.filepath)).name
self.instance.filepath = get_filepath(filename)
self.instance.filepath_raw = get_filepath(filename)
self.instance.save()
# An image can't be unpacked to the modified path
# TODO: make a bug report