diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-03-07 01:54:33 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-03-07 01:54:33 +0400 |
commit | bf9de9d934ded10a990607913fbf5c106d33bf16 (patch) | |
tree | 21602c3f58b73df18c630927203e12a7b974d55f /release/scripts/startup/bl_operators/image.py | |
parent | 7c59666a278d086b10f9e3dd0f13b5009ba30271 (diff) |
Fix #30436: Externally editing unsaved images fails
Diffstat (limited to 'release/scripts/startup/bl_operators/image.py')
-rw-r--r-- | release/scripts/startup/bl_operators/image.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_operators/image.py b/release/scripts/startup/bl_operators/image.py index 4c04aa3b7f3..754e993dacb 100644 --- a/release/scripts/startup/bl_operators/image.py +++ b/release/scripts/startup/bl_operators/image.py @@ -67,7 +67,7 @@ class EditExternally(Operator): self.report({'ERROR'}, "Image path not set") return {'CANCELLED'} - if not os.path.exists(filepath): + if not os.path.exists(filepath) or not os.path.isfile(filepath): self.report({'ERROR'}, "Image path %r not found, image may be packed or " "unsaved" % filepath) |