diff options
Diffstat (limited to 'add_mesh_extras.py')
-rw-r--r-- | add_mesh_extras.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/add_mesh_extras.py b/add_mesh_extras.py index c76cfce0..a109f3e6 100644 --- a/add_mesh_extras.py +++ b/add_mesh_extras.py @@ -36,7 +36,7 @@ from bpy.props import * # calculates the matrix for the new object # depending on user pref def align_matrix(context): - loc = TranslationMatrix(context.scene.cursor_location) + loc = 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'): @@ -386,7 +386,7 @@ def add_spindle(segments, radius, height, cap_height): upper_edgeloop = [] lower_edgeloop = [] for index in range(segments): - mtx = RotationMatrix(2.0 * pi * float(index) / segments, 3, 'Z') + mtx = Matrix.Rotation(2.0 * pi * float(index) / segments, 3, 'Z') # Calculate index & location of upper verte4x tip. idx_up = len(verts) |