diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-12-21 04:56:42 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-12-21 04:56:42 +0300 |
commit | 0457976a872000993202763abe7503c76b461122 (patch) | |
tree | a4998fbbb768c43eb00b55ba311d497fd74eadcd /curve_simplify.py | |
parent | 04f6388deeddb32d53c9b6ab961ef36e45d48486 (diff) |
Rename user_preferences -> preferences
Diffstat (limited to 'curve_simplify.py')
-rw-r--r-- | curve_simplify.py | 8 |
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'} |