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:
authorCampbell Barton <ideasman42@gmail.com>2018-12-21 04:56:42 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-12-21 04:56:42 +0300
commit0457976a872000993202763abe7503c76b461122 (patch)
treea4998fbbb768c43eb00b55ba311d497fd74eadcd /curve_simplify.py
parent04f6388deeddb32d53c9b6ab961ef36e45d48486 (diff)
Rename user_preferences -> preferences
Diffstat (limited to 'curve_simplify.py')
-rw-r--r--curve_simplify.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/curve_simplify.py b/curve_simplify.py
index 4a390feb..1518ed5f 100644
--- a/curve_simplify.py
+++ b/curve_simplify.py
@@ -574,8 +574,8 @@ class CURVE_OT_simplify(Operator):
self.keepShort # 7
]
try:
- global_undo = bpy.context.user_preferences.edit.use_global_undo
- context.user_preferences.edit.use_global_undo = False
+ global_undo = bpy.context.preferences.edit.use_global_undo
+ context.preferences.edit.use_global_undo = False
bpy.ops.object.mode_set(mode='OBJECT')
obj = context.active_object
@@ -583,11 +583,11 @@ class CURVE_OT_simplify(Operator):
main(context, obj, options, curve_dimension)
- context.user_preferences.edit.use_global_undo = global_undo
+ context.preferences.edit.use_global_undo = global_undo
except Exception as e:
error_handlers(self, "curve.simplify", e, "Simplify Curves")
- context.user_preferences.edit.use_global_undo = global_undo
+ context.preferences.edit.use_global_undo = global_undo
return {'CANCELLED'}
return {'FINISHED'}