From ac2bcc359621e588dd14e4a83fa050f73e4c829c Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 9 Jan 2011 15:00:50 +0000 Subject: update for changes in blender. --- add_mesh_BoltFactory/createMesh.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'add_mesh_BoltFactory') 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 -- cgit v1.2.3