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_torus_knots.py')
-rw-r--r--add_curve_torus_knots.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/add_curve_torus_knots.py b/add_curve_torus_knots.py
index 7a28edc2..aa1f3071 100644
--- a/add_curve_torus_knots.py
+++ b/add_curve_torus_knots.py
@@ -280,8 +280,8 @@ class torus_knot_plus(bpy.types.Operator):
##### EXECUTE #####
def execute(self, context):
# turn off undo
- undo = bpy.context.user_preferences.edit.global_undo
- bpy.context.user_preferences.edit.global_undo = False
+ undo = bpy.context.user_preferences.edit.use_global_undo
+ bpy.context.user_preferences.edit.use_global_undo = False
props = self.properties
@@ -292,7 +292,7 @@ class torus_knot_plus(bpy.types.Operator):
main(context, props, self.align_matrix)
# restore pre operator undo state
- bpy.context.user_preferences.edit.global_undo = undo
+ bpy.context.user_preferences.edit.use_global_undo = undo
return {'FINISHED'}