[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [978] trunk/py/scripts/addons: patch [ #23647] fix for bf-extensions/trunk/py/scripts/addons

Campbell Barton ideasman42 at gmail.com
Fri Sep 3 17:58:47 CEST 2010


Revision: 978
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-extensions&revision=978
Author:   campbellbarton
Date:     2010-09-03 17:58:47 +0200 (Fri, 03 Sep 2010)

Log Message:
-----------
patch [#23647] fix for bf-extensions/trunk/py/scripts/addons
from Filiciss Muhgue (filiciss) 

Modified Paths:
--------------
    trunk/py/scripts/addons/add_mesh_BoltFactory/original_script_add_mesh_bolt.py
    trunk/py/scripts/addons/add_mesh_pipe_joint.py
    trunk/py/scripts/addons/io_mesh_raw/import_raw.py

Modified: trunk/py/scripts/addons/add_mesh_BoltFactory/original_script_add_mesh_bolt.py
===================================================================
--- trunk/py/scripts/addons/add_mesh_BoltFactory/original_script_add_mesh_bolt.py	2010-09-03 15:05:18 UTC (rev 977)
+++ trunk/py/scripts/addons/add_mesh_BoltFactory/original_script_add_mesh_bolt.py	2010-09-03 15:58:47 UTC (rev 978)
@@ -2496,12 +2496,12 @@
 
     # ugh
     for ob in scene.objects:
-        ob.selected = False
+        ob.select = False
 
     mesh.update()
     ob_new = bpy.data.objects.new(sObjName, mesh)
     scene.objects.link(ob_new)
-    ob_new.selected = True
+    ob_new.select = True
 
     ob_new.location = scene.cursor_location
 
@@ -2510,7 +2510,7 @@
     if obj_act and obj_act.mode == 'EDIT':
         bpy.ops.object.mode_set(mode='OBJECT')
 
-        obj_act.selected = True
+        obj_act.select = True
         scene.update() # apply location
         #scene.objects.active = ob_new
 
@@ -2599,14 +2599,10 @@
 
 
 def register():
-    bpy.types.register(ObjectButtonsPanel)
-    bpy.types.register(CUSTOM_OT_Preset_Button)    
-    bpy.types.register(CUSTOM_OT_Create_Button)
+    pass
     
 def unregister():
-    bpy.types.unregister(ObjectButtonsPanel)
-    bpy.types.unregister(CUSTOM_OT_Preset_Button)
-    bpy.types.unregister(CUSTOM_OT_Create_Button)    
+    pass
 
  
 if __name__ == "__main__":

Modified: trunk/py/scripts/addons/add_mesh_pipe_joint.py
===================================================================
--- trunk/py/scripts/addons/add_mesh_pipe_joint.py	2010-09-03 15:05:18 UTC (rev 977)
+++ trunk/py/scripts/addons/add_mesh_pipe_joint.py	2010-09-03 15:58:47 UTC (rev 978)
@@ -172,7 +172,7 @@
 
         # Use the active obj and select it.
         ob_new = obj_act
-        ob_new.selected = True
+        ob_new.select = True
 
         if obj_act.mode == 'OBJECT':
             # Get existing mesh datablock.

Modified: trunk/py/scripts/addons/io_mesh_raw/import_raw.py
===================================================================
--- trunk/py/scripts/addons/io_mesh_raw/import_raw.py	2010-09-03 15:05:18 UTC (rev 977)
+++ trunk/py/scripts/addons/io_mesh_raw/import_raw.py	2010-09-03 15:58:47 UTC (rev 978)
@@ -43,7 +43,7 @@
 import bpy
 
 # move those to a utility modul
-from import_scene_obj import unpack_face_list, unpack_list # TODO, make generic
+from io_utils import unpack_face_list, unpack_list # TODO, make generic
 
 
 def readMesh(filename, objName):




More information about the Bf-extensions-cvs mailing list