From 696b0366f5c46dcfcb50f53b4ca4f59c593b88fb Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 5 Feb 2011 07:08:34 +0000 Subject: update for changes in mathutuils. --- add_curve_aceous_galore.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'add_curve_aceous_galore.py') diff --git a/add_curve_aceous_galore.py b/add_curve_aceous_galore.py index be8bbc6e..fcc27502 100644 --- a/add_curve_aceous_galore.py +++ b/add_curve_aceous_galore.py @@ -603,7 +603,7 @@ def align_matrix(context): obj_align = context.user_preferences.edit.object_align if (context.space_data.type == 'VIEW_3D' and obj_align == 'VIEW'): - rot = context.space_data.region_3d.view_matrix.rotation_part().invert().resize4x4() + rot = context.space_data.region_3d.view_matrix.to_3x3().inverted().to_4x4() else: rot = Matrix() align_matrix = loc * rot -- cgit v1.2.3