diff --git a/core/common.py b/core/common.py index e3edf1b..4b2e39f 100644 --- a/core/common.py +++ b/core/common.py @@ -656,7 +656,9 @@ class ArmatureData(Tuple[bool,bool]): def store_breaking_settings_armature(armature: bpy.types.Object) -> ArmatureData: armature_data: bpy.types.Armature = armature.data - return (armature_data.use_mirror_x, armature.pose.use_mirror_x) + data: ArmatureData = (armature_data.use_mirror_x, armature.pose.use_mirror_x) + armature_data.use_mirror_x, armature.pose.use_mirror_x = (False, False) + return data def restore_breaking_settings_armature(armature: bpy.types.Object, data: ArmatureData) -> None: # Check if armature object is still valid (not removed) diff --git a/functions/custom_tools/armature_merging.py b/functions/custom_tools/armature_merging.py index 1e2cb95..f11d075 100644 --- a/functions/custom_tools/armature_merging.py +++ b/functions/custom_tools/armature_merging.py @@ -103,7 +103,6 @@ class AvatarToolkit_OT_MergeArmature(bpy.types.Operator): wm.progress_end() restore_breaking_settings_armature(base_armature, data_breaking_base) - if merge_armature_name_stored in bpy.data.objects: merge_armature_obj = bpy.data.objects[merge_armature_name_stored] restore_breaking_settings_armature(merge_armature_obj, data_breaking_merge)