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:
authorCampbell Barton <ideasman42@gmail.com>2011-01-09 18:00:50 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-01-09 18:00:50 +0300
commitac2bcc359621e588dd14e4a83fa050f73e4c829c (patch)
tree48314d696b722436278b6f9873303781b79c2a95 /add_mesh_BoltFactory
parent7fb70a4041ef1152eb34a7506ea2b6f671e76042 (diff)
update for changes in blender.
Diffstat (limited to 'add_mesh_BoltFactory')
-rw-r--r--add_mesh_BoltFactory/createMesh.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/add_mesh_BoltFactory/createMesh.py b/add_mesh_BoltFactory/createMesh.py
index 87b5bc39..65b89089 100644
--- a/add_mesh_BoltFactory/createMesh.py
+++ b/add_mesh_BoltFactory/createMesh.py
@@ -142,11 +142,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(((1,0,0,0),(0,cos(q),sin(q),0),(0,-sin(q),cos(q),0),(0,0,0,1)))
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(((cos(q),0,-sin(q),0),(0,1,0,0),(sin(q),0,cos(q),0),(0,0,0,1)))
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(((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")
return matrix