Armature Merge Fix #174

Fixed the struct error and the logger error.
This commit is contained in:
Yusarina
2025-08-01 02:40:39 +01:00
parent e3052d867d
commit 6eb253be17
2 changed files with 11 additions and 2 deletions
+3
View File
@@ -653,6 +653,9 @@ def store_breaking_settings_armature(armature: bpy.types.Object) -> ArmatureData
return (armature_data.use_mirror_x, armature.pose.use_mirror_x)
def restore_breaking_settings_armature(armature: bpy.types.Object, data: ArmatureData) -> None:
# Check if armature object is still valid (not removed)
if not armature or armature.name not in bpy.data.objects:
return
armature_data: bpy.types.Armature = armature.data
armature_data.use_mirror_x, armature.pose.use_mirror_x = data