[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [3367] contrib/py/scripts/addons/ space_view3d_paint_bprojection.py: BProjection: some change to make it more compatible

geo kgeo kgeogeo at hotmail.com
Mon May 14 11:57:30 CEST 2012


Revision: 3367
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=3367
Author:   kgeogeo
Date:     2012-05-14 09:57:29 +0000 (Mon, 14 May 2012)
Log Message:
-----------
BProjection: some change to make it more compatible

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-05-13 08:38:10 UTC (rev 3366)
+++ contrib/py/scripts/addons/space_view3d_paint_bprojection.py	2012-05-14 09:57:29 UTC (rev 3367)
@@ -691,12 +691,12 @@
         except:                 
             createcustomprops(context)
             cm = bpy.context.object.mode
-            tmp = context.object
+            '''tmp = context.object
             for ob in (ob for ob in bpy.data.objects if ob.type == 'MESH' and ob.hide == False and context.scene in ob.users_scene):
                 context.scene.objects.active = ob
                 bpy.ops.object.mode_set(mode = cm, toggle=False) 
             
-            context.scene.objects.active = tmp
+            context.scene.objects.active = tmp'''
             bpy.ops.object.mode_set(mode = 'OBJECT', toggle=False)
             
             context.space_data.show_relationship_lines = False
@@ -858,12 +858,12 @@
             for kmi in (kmi for kmi in km.keymap_items if kmi.idname in {"object.intuitivescale", }):
                     km.keymap_items.remove(kmi)
             
-            tmp = context.object
+            '''tmp = context.object
             for ob in (ob for ob in bpy.data.objects if ob.type == 'MESH' and ob.hide == False and context.scene in ob.users_scene):
                 context.scene.objects.active = ob
                 bpy.ops.object.mode_set(mode = 'OBJECT', toggle=False) 
             
-            context.scene.objects.active = tmp
+            context.scene.objects.active = tmp'''
             ob = context.object           
             
             



More information about the Bf-extensions-cvs mailing list