Merge branch 'Current' into Alpha-4

This commit is contained in:
Onan Chew
2025-10-29 12:14:38 -04:00
committed by GitHub
4 changed files with 25 additions and 11 deletions
+4 -2
View File
@@ -102,6 +102,7 @@ class AvatarToolkit_OT_MergeArmature(bpy.types.Operator):
wm.progress_update(100)
wm.progress_end()
# Restore settings only for the base armature since merge_armature is removed during join
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]
@@ -124,8 +125,9 @@ class AvatarToolkit_OT_MergeArmature(bpy.types.Operator):
return {'FINISHED'}
except Exception as e:
logger.error(f"Error merging armatures: {str(e)}\n{traceback.format_exc()}")
self.report({'ERROR'}, traceback.format_exc())
errormessage: str = traceback.format_exc()
logger.error(f"Error merging armatures: {str(e)}\n{errormessage}")
self.report({'ERROR'}, f"Error merging armatures: {errormessage}")
# Try to restore original mode even on error
try: