[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [791] contrib/py/scripts/addons/ add_mesh_BoltFactory/createMesh.py: -fix for api changes

Florian Meyer florianfelix at web.de
Thu Jul 15 21:36:40 CEST 2010


Revision: 791
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-extensions&revision=791
Author:   testscreenings
Date:     2010-07-15 21:36:40 +0200 (Thu, 15 Jul 2010)

Log Message:
-----------
-fix for api changes
-reverted the prints, where nececarry

Modified Paths:
--------------
    contrib/py/scripts/addons/add_mesh_BoltFactory/createMesh.py

Modified: contrib/py/scripts/addons/add_mesh_BoltFactory/createMesh.py
===================================================================
--- contrib/py/scripts/addons/add_mesh_BoltFactory/createMesh.py	2010-07-15 16:56:27 UTC (rev 790)
+++ contrib/py/scripts/addons/add_mesh_BoltFactory/createMesh.py	2010-07-15 19:36:40 UTC (rev 791)
@@ -137,7 +137,7 @@
 #    A new rotation matrix. 
 def Simple_RotationMatrix(angle, matSize, axisFlag):
     if matSize != 4 :
-        #print ("Simple_RotationMatrix can only do 4x4")
+        print ("Simple_RotationMatrix can only do 4x4")
         
     q = radians(angle)  #make the rotation go clockwise
     
@@ -148,7 +148,7 @@
     elif axisFlag == 'z':
         matrix = MATHUTILS.Matrix([cos(q),sin(q),0,0],[-sin(q),cos(q),0,0],[0,0,1,0],[0,0,0,1])  
     else:
-        #print   ("Simple_RotationMatrix can only do x y z axis")
+        print   ("Simple_RotationMatrix can only do x y z axis")
     return matrix
 
 
@@ -2047,7 +2047,7 @@
     mesh.update()
     ob_new = bpy.data.objects.new(sObjName, mesh)
     scene.objects.link(ob_new)
-    ob_new.selected = True
+    ob_new.select = True
     scene.objects.active = ob_new
 
     #ob_new.location = scene.cursor_location
@@ -2055,4 +2055,4 @@
 
     #print("Created_Object")
     return
-    
+    
\ No newline at end of file




More information about the Bf-extensions-cvs mailing list