diff options
Diffstat (limited to 'rigify/legacy/rig_ui_template.py')
-rw-r--r-- | rigify/legacy/rig_ui_template.py | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/rigify/legacy/rig_ui_template.py b/rigify/legacy/rig_ui_template.py index cab5674f..5f384006 100644 --- a/rigify/legacy/rig_ui_template.py +++ b/rigify/legacy/rig_ui_template.py @@ -389,12 +389,12 @@ class Rigify_Arm_FK2IK(bpy.types.Operator): return (context.active_object is not 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'} @@ -419,12 +419,12 @@ class Rigify_Arm_IK2FK(bpy.types.Operator): return (context.active_object is not 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'} @@ -450,12 +450,12 @@ class Rigify_Leg_FK2IK(bpy.types.Operator): return (context.active_object is not 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'} @@ -482,12 +482,12 @@ class Rigify_Leg_IK2FK(bpy.types.Operator): return (context.active_object is not 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], 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'} |