forked from bartvdbraak/blender
avoid confusion with image 'Edit Externally' operator, disallow editing of packed images, resolves bug [#30506].
This commit is contained in:
parent
0d69b18a05
commit
012fe4646c
@ -96,6 +96,10 @@ class EditExternally(Operator):
|
||||
self.report({'ERROR'}, "Context incorrect, image not found")
|
||||
return {'CANCELLED'}
|
||||
|
||||
if image.packed_file:
|
||||
self.report({'ERROR'}, "Image is packed, unpack before editing")
|
||||
return {'CANCELLED'}
|
||||
|
||||
filepath = bpy.path.abspath(image.filepath, library=image.library)
|
||||
|
||||
self.filepath = os.path.normpath(filepath)
|
||||
|
Loading…
Reference in New Issue
Block a user