diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-08-11 20:42:22 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-08-11 20:42:22 +0400 |
commit | 4e501fa153573a81dc2e69a1e9d6d4387baf4a9e (patch) | |
tree | 400eba0b9efdba6c599c7ba615b886cd44d488b6 /add_mesh_pipe_joint.py | |
parent | 4b29a21f0c5dc55a3eda8b16a7bb4946bf7927ec (diff) |
updates for changes in mathutils
Diffstat (limited to 'add_mesh_pipe_joint.py')
-rw-r--r-- | add_mesh_pipe_joint.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/add_mesh_pipe_joint.py b/add_mesh_pipe_joint.py index 3ebbf5d1..129acb2b 100644 --- a/add_mesh_pipe_joint.py +++ b/add_mesh_pipe_joint.py @@ -113,7 +113,7 @@ http://blenderartists.org/forum/showthread.php?t=154394 TODO: Use a rotation matrix for rotating the circle vertices: -rotation_matrix = mathutils.RotationMatrix(-math.pi/2, 4, 'x') +rotation_matrix = mathutils.Matrix.Rotation(-math.pi/2, 4, 'x') mesh.transform(rotation_matrix) """ @@ -129,7 +129,7 @@ from bpy.props import * # calculates the matrix for the new object # depending on user pref def align_matrix(context): - loc = mathutils.TranslationMatrix(context.scene.cursor_location) + loc = mathutils.Matrix.Translation(context.scene.cursor_location) obj_align = context.user_preferences.edit.object_align if (context.space_data.type == 'VIEW_3D' and obj_align == 'VIEW'): |