Changeset View
Changeset View
Standalone View
Standalone View
add_curve_extra_objects/add_curve_torus_knots.py
| Context not available. | |||||
| userRot = self.rotation.to_matrix().to_4x4() | userRot = self.rotation.to_matrix().to_4x4() | ||||
| obj_align = context.user_preferences.edit.object_align | obj_align = context.user_preferences.edit.object_align | ||||
| if (context.space_data.type == 'VIEW_3D' and obj_align == 'VIEW'): | if context.space_data.type == 'VIEW_3D' and obj_align == 'VIEW': | ||||
| rot = context.space_data.region_3d.view_matrix.to_3x3().inverted().to_4x4() | rot = context.space_data.region_3d.view_matrix.to_3x3().inverted().to_4x4() | ||||
| else: | else: | ||||
| rot = Matrix() | rot = Matrix() | ||||
| Context not available. | |||||