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_aceous_galore.py')
-rw-r--r--add_curve_aceous_galore.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/add_curve_aceous_galore.py b/add_curve_aceous_galore.py
index fe8cefa1..6f237c1f 100644
--- a/add_curve_aceous_galore.py
+++ b/add_curve_aceous_galore.py
@@ -1070,8 +1070,8 @@ class Curveaceous_galore(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
# deal with 2D - 3D curve differences
props = self.properties
@@ -1090,7 +1090,7 @@ class Curveaceous_galore(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'}