[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [3350] contrib/py/scripts/addons/ space_view3d_paint_bprojection.py: BProjection: i' ve desactivate some line of code because it make some error and I stil don' t know why, I investigate

geo kgeo kgeogeo at hotmail.com
Sat May 5 12:30:37 CEST 2012


Revision: 3350
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=3350
Author:   kgeogeo
Date:     2012-05-05 10:30:33 +0000 (Sat, 05 May 2012)
Log Message:
-----------
BProjection: i've desactivate some line of code because it make some error and I stil don't know why, I investigate

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-05 02:37:16 UTC (rev 3349)
+++ contrib/py/scripts/addons/space_view3d_paint_bprojection.py	2012-05-05 10:30:33 UTC (rev 3350)
@@ -705,9 +705,9 @@
             createcustomprops(context)
             cm = bpy.context.object.mode
             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):
+            '''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) 
+                bpy.ops.object.mode_set(mode = cm, toggle=False)''' 
             
             context.scene.objects.active = tmp
             bpy.ops.object.mode_set(mode = 'OBJECT', toggle=False)
@@ -872,9 +872,9 @@
                     km.keymap_items.remove(kmi)
             
             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):
+            '''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) 
+                bpy.ops.object.mode_set(mode = 'OBJECT', toggle=False) '''
             
             context.scene.objects.active = tmp
             ob = context.object           
@@ -983,7 +983,7 @@
                 em.custom_active_object = new_ob.name
                 tmp = em.custom_c3d
                 em.custom_c3d = False
-                #bpy.ops.object.active_view(index = shape_index-1)
+                bpy.ops.object.active_view(index = shape_index-1)
                 bpy.ops.object.mode_set(mode = cm, toggle=False)
                         
                 sd = context.space_data



More information about the Bf-extensions-cvs mailing list