[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [44687] trunk/blender/release/scripts/ startup/bl_operators/image.py: Fix #30436: Externally editing unsaved images fails

Sergey Sharybin sergey.vfx at gmail.com
Tue Mar 6 22:54:41 CET 2012


Revision: 44687
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=44687
Author:   nazgul
Date:     2012-03-06 21:54:33 +0000 (Tue, 06 Mar 2012)
Log Message:
-----------
Fix #30436: Externally editing unsaved images fails

Modified Paths:
--------------
    trunk/blender/release/scripts/startup/bl_operators/image.py

Modified: trunk/blender/release/scripts/startup/bl_operators/image.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_operators/image.py	2012-03-06 21:42:03 UTC (rev 44686)
+++ trunk/blender/release/scripts/startup/bl_operators/image.py	2012-03-06 21:54:33 UTC (rev 44687)
@@ -67,7 +67,7 @@
             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)




More information about the Bf-blender-cvs mailing list