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 /rigify/generate.py | |
parent | 04f6388deeddb32d53c9b6ab961ef36e45d48486 (diff) |
Rename user_preferences -> preferences
Diffstat (limited to 'rigify/generate.py')
-rw-r--r-- | rigify/generate.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rigify/generate.py b/rigify/generate.py index c804cb69..d726f14a 100644 --- a/rigify/generate.py +++ b/rigify/generate.py @@ -527,8 +527,8 @@ def generate_rig(context, metarig): def create_selection_sets(obj, metarig): # Check if selection sets addon is installed - if 'bone_selection_groups' not in bpy.context.user_preferences.addons \ - and 'bone_selection_sets' not in bpy.context.user_preferences.addons: + if 'bone_selection_groups' not in bpy.context.preferences.addons \ + and 'bone_selection_sets' not in bpy.context.preferences.addons: return bpy.ops.object.mode_set(mode='POSE') @@ -550,7 +550,7 @@ def create_selection_sets(obj, metarig): #bpy.ops.pose.selection_set_add() obj.selection_sets.add() obj.selection_sets[-1].name = name - if 'bone_selection_sets' in bpy.context.user_preferences.addons: + if 'bone_selection_sets' in bpy.context.preferences.addons: act_sel_set = obj.selection_sets[-1] # iterate only the selected bones in current pose that are not hidden |