[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [3214] contrib/py/scripts/addons/ space_view3d_paint_bprojection.py: BProjection: fix a small bug when there' s no image in the first execution

geo kgeo kgeogeo at hotmail.com
Wed Apr 4 22:15:16 CEST 2012


Revision: 3214
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=3214
Author:   kgeogeo
Date:     2012-04-04 20:15:15 +0000 (Wed, 04 Apr 2012)
Log Message:
-----------
BProjection: fix a small bug when there's no image in the first execution

Modified Paths:
--------------
    contrib/py/scripts/addons/space_view3d_paint_bprojection.py

Modified: contrib/py/scripts/addons/space_view3d_paint_bprojection.py
===================================================================
--- contrib/py/scripts/addons/space_view3d_paint_bprojection.py	2012-04-04 20:01:12 UTC (rev 3213)
+++ contrib/py/scripts/addons/space_view3d_paint_bprojection.py	2012-04-04 20:15:15 UTC (rev 3214)
@@ -305,7 +305,10 @@
         prop.custom_linkscaleuv = ob.custom_linkscaleuv
         prop.custom_flipuvx = ob.custom_flipuvx
         prop.custom_flipuvy = ob.custom_flipuvy
-        prop.custom_image = bpy.data.textures['Texture for BProjection'].image.name
+        try:
+            prop.custom_image = bpy.data.textures['Texture for BProjection'].image.name
+        except:
+            do = 'nothing'
         #bpy.ops.object.active_view(index = self.index)
         
         return {'FINISHED'}



More information about the Bf-extensions-cvs mailing list