[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2800] trunk/py/scripts/addons/ add_mesh_BoltFactory/createMesh.py: Fix for matrix changes in SVN.
Andrew Hale
TrumanBlending at gmail.com
Thu Dec 22 05:32:27 CET 2011
Revision: 2800
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2800
Author: trumanblending
Date: 2011-12-22 04:32:15 +0000 (Thu, 22 Dec 2011)
Log Message:
-----------
Fix for matrix changes in SVN.
- Rotation matrices now use the Matrix.Rotation classmethod
Modified Paths:
--------------
trunk/py/scripts/addons/add_mesh_BoltFactory/createMesh.py
Modified: trunk/py/scripts/addons/add_mesh_BoltFactory/createMesh.py
===================================================================
--- trunk/py/scripts/addons/add_mesh_BoltFactory/createMesh.py 2011-12-21 11:02:25 UTC (rev 2799)
+++ trunk/py/scripts/addons/add_mesh_BoltFactory/createMesh.py 2011-12-22 04:32:15 UTC (rev 2800)
@@ -131,11 +131,11 @@
q = radians(angle) #make the rotation go clockwise
if axisFlag == 'x':
- matrix = mathutils.Matrix(((1,0,0,0),(0,cos(q),sin(q),0),(0,-sin(q),cos(q),0),(0,0,0,1)))
+ matrix = mathutils.Matrix.Rotation(q, 4, 'X')
elif axisFlag == 'y':
- matrix = mathutils.Matrix(((cos(q),0,-sin(q),0),(0,1,0,0),(sin(q),0,cos(q),0),(0,0,0,1)))
+ matrix = mathutils.Matrix.Rotation(q, 4, 'Y')
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)))
+ matrix = mathutils.Matrix.Rotation(q, 4, 'Z')
else:
print ("Simple_RotationMatrix can only do x y z axis")
return matrix
@@ -1699,7 +1699,7 @@
Rank = float(OUTTER_RADIUS - INNER_RADIUS)/float(DIV)
- for j in range(1):
+ for j in range(1): #FIXME - for j in range(1) what?!
for i in range(DIV+1):
z = Height_Offset - (Height_Step*i)
More information about the Bf-extensions-cvs
mailing list