From 012fe4646c07e50fcfec23c838249106f01da66d Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 3 Apr 2012 12:02:32 +0000 Subject: [PATCH] avoid confusion with image 'Edit Externally' operator, disallow editing of packed images, resolves bug [#30506]. --- release/scripts/startup/bl_operators/image.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/release/scripts/startup/bl_operators/image.py b/release/scripts/startup/bl_operators/image.py index 754e993dacb..1b7d5e3a40d 100644 --- a/release/scripts/startup/bl_operators/image.py +++ b/release/scripts/startup/bl_operators/image.py @@ -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)