Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Hale <TrumanBlending@gmail.com>2011-12-22 08:32:15 +0400
committerAndrew Hale <TrumanBlending@gmail.com>2011-12-22 08:32:15 +0400
commit613fc8536675b6e2845fd6f8fb71796942be9e47 (patch)
treec940844a1686107ea367ede186039605027b38f7 /add_mesh_BoltFactory
parent252dff515fa4b045ac94655cdee0450627caf4f8 (diff)
Fix for matrix changes in SVN.
- Rotation matrices now use the Matrix.Rotation classmethod
Diffstat (limited to 'add_mesh_BoltFactory')
-rw-r--r--add_mesh_BoltFactory/createMesh.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/add_mesh_BoltFactory/createMesh.py b/add_mesh_BoltFactory/createMesh.py
index 9b30d6ab..8bac9930 100644
--- a/add_mesh_BoltFactory/createMesh.py
+++ b/add_mesh_BoltFactory/createMesh.py
@@ -131,11 +131,11 @@ def Simple_RotationMatrix(angle, matSize, axisFlag):
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 @@ def Create_Internal_Thread_Start_Verts(verts,INNER_RADIUS,OUTTER_RADIUS,PITCH,DI
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)