diff options
Diffstat (limited to 'rigify/legacy/rig_ui_pitchipoy_template.py')
-rw-r--r-- | rigify/legacy/rig_ui_pitchipoy_template.py | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/rigify/legacy/rig_ui_pitchipoy_template.py b/rigify/legacy/rig_ui_pitchipoy_template.py index 45e4f83a..4f71de06 100644 --- a/rigify/legacy/rig_ui_pitchipoy_template.py +++ b/rigify/legacy/rig_ui_pitchipoy_template.py @@ -541,12 +541,12 @@ class Rigify_Arm_FK2IK(bpy.types.Operator): return (context.active_object != None and context.mode == 'POSE') def execute(self, context): - use_global_undo = context.user_preferences.edit.use_global_undo - context.user_preferences.edit.use_global_undo = False + use_global_undo = context.preferences.edit.use_global_undo + context.preferences.edit.use_global_undo = False try: fk2ik_arm(context.active_object, fk=[self.uarm_fk, self.farm_fk, self.hand_fk], ik=[self.uarm_ik, self.farm_ik, self.hand_ik]) finally: - context.user_preferences.edit.use_global_undo = use_global_undo + context.preferences.edit.use_global_undo = use_global_undo return {'FINISHED'} @@ -571,12 +571,12 @@ class Rigify_Arm_IK2FK(bpy.types.Operator): return (context.active_object != None and context.mode == 'POSE') def execute(self, context): - use_global_undo = context.user_preferences.edit.use_global_undo - context.user_preferences.edit.use_global_undo = False + use_global_undo = context.preferences.edit.use_global_undo + context.preferences.edit.use_global_undo = False try: ik2fk_arm(context.active_object, fk=[self.uarm_fk, self.farm_fk, self.hand_fk], ik=[self.uarm_ik, self.farm_ik, self.hand_ik, self.pole]) finally: - context.user_preferences.edit.use_global_undo = use_global_undo + context.preferences.edit.use_global_undo = use_global_undo return {'FINISHED'} @@ -602,12 +602,12 @@ class Rigify_Leg_FK2IK(bpy.types.Operator): return (context.active_object != None and context.mode == 'POSE') def execute(self, context): - use_global_undo = context.user_preferences.edit.use_global_undo - context.user_preferences.edit.use_global_undo = False + use_global_undo = context.preferences.edit.use_global_undo + context.preferences.edit.use_global_undo = False try: fk2ik_leg(context.active_object, fk=[self.thigh_fk, self.shin_fk, self.foot_fk, self.mfoot_fk], ik=[self.thigh_ik, self.shin_ik, self.foot_ik, self.mfoot_ik]) finally: - context.user_preferences.edit.use_global_undo = use_global_undo + context.preferences.edit.use_global_undo = use_global_undo return {'FINISHED'} @@ -635,12 +635,12 @@ class Rigify_Leg_IK2FK(bpy.types.Operator): return (context.active_object != None and context.mode == 'POSE') def execute(self, context): - use_global_undo = context.user_preferences.edit.use_global_undo - context.user_preferences.edit.use_global_undo = False + use_global_undo = context.preferences.edit.use_global_undo + context.preferences.edit.use_global_undo = False try: ik2fk_leg(context.active_object, fk=[self.thigh_fk, self.shin_fk, self.mfoot_fk, self.foot_fk], ik=[self.thigh_ik, self.shin_ik, self.foot_ik, self.footroll, self.pole, self.mfoot_ik]) finally: - context.user_preferences.edit.use_global_undo = use_global_undo + context.preferences.edit.use_global_undo = use_global_undo return {'FINISHED'} |