Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-04-03 16:02:32 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-04-03 16:02:32 +0400
commit012fe4646c07e50fcfec23c838249106f01da66d (patch)
tree8a47bf44a9a6cfa08981fd479ad484420888c85c /release
parent0d69b18a0503c3b4ab2c7c36bf0a953ce498a58a (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.py4
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)