Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'add_curve_extra_objects/add_curve_torus_knots.py')
-rw-r--r--add_curve_extra_objects/add_curve_torus_knots.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/add_curve_extra_objects/add_curve_torus_knots.py b/add_curve_extra_objects/add_curve_torus_knots.py
index d138508e..a3c05ff6 100644
--- a/add_curve_extra_objects/add_curve_torus_knots.py
+++ b/add_curve_extra_objects/add_curve_torus_knots.py
@@ -154,7 +154,7 @@ def align_matrix(self, context):
userLoc = Matrix.Translation(self.location)
userRot = self.rotation.to_matrix().to_4x4()
- obj_align = context.user_preferences.edit.object_align
+ obj_align = context.preferences.edit.object_align
if (context.space_data.type == 'VIEW_3D' and obj_align == 'VIEW'):
rot = context.space_data.region_3d.view_matrix.to_3x3().inverted().to_4x4()
else:
@@ -712,14 +712,14 @@ class torus_knot_plus(Operator, AddObjectHelper):
self.align_matrix = align_matrix(self, context)
# turn off undo
- #undo = bpy.context.user_preferences.edit.use_global_undo
- #bpy.context.user_preferences.edit.use_global_undo = False
+ #undo = bpy.context.preferences.edit.use_global_undo
+ #bpy.context.preferences.edit.use_global_undo = False
# create the curve
create_torus_knot(self, context)
# restore pre operator undo state
- #bpy.context.user_preferences.edit.use_global_undo = undo
+ #bpy.context.preferences.edit.use_global_undo = undo
return {'FINISHED'}