diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-04-03 16:02:32 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-04-03 16:02:32 +0400 |
commit | 012fe4646c07e50fcfec23c838249106f01da66d (patch) | |
tree | 8a47bf44a9a6cfa08981fd479ad484420888c85c /release | |
parent | 0d69b18a0503c3b4ab2c7c36bf0a953ce498a58a (diff) |
avoid confusion with image 'Edit Externally' operator, disallow editing of packed images, resolves bug [#30506].
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_operators/image.py | 4 |
1 files changed, 4 insertions, 0 deletions
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) |