avoid confusion with image 'Edit Externally' operator, disallow editing of packed images, resolves bug [#30506].

This commit is contained in:
Campbell Barton 2012-04-03 12:02:32 +00:00
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)