fix more error logging errors
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import traceback
|
||||
import bpy
|
||||
import numpy as np
|
||||
from typing import List, Optional, Dict, Set, Tuple, Any
|
||||
@@ -73,7 +74,7 @@ class AvatarToolkit_OT_MergeArmature(bpy.types.Operator):
|
||||
|
||||
except Exception as e:
|
||||
logger.error(f"Error merging armatures:", exception=e)
|
||||
self.report({'ERROR'}, str(e))
|
||||
self.report({'ERROR'}, traceback.format_exc())
|
||||
return {'CANCELLED'}
|
||||
|
||||
def delete_rigidbodies_and_joints(armature: Object) -> None:
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import traceback
|
||||
import bpy
|
||||
from bpy.types import Operator, Context, Object, ArmatureModifier, VertexGroup
|
||||
from mathutils import Vector
|
||||
@@ -116,7 +117,7 @@ class AvatarToolkit_OT_AttachMesh(Operator):
|
||||
|
||||
except Exception as e:
|
||||
logger.error(f"Failed to attach mesh:", exception=e)
|
||||
self.report({'ERROR'}, str(e))
|
||||
self.report({'ERROR'}, traceback.format_exc())
|
||||
return {'CANCELLED'}
|
||||
|
||||
def validate_mesh_transforms(mesh: Optional[Object]) -> tuple[bool, str]:
|
||||
|
||||
Reference in New Issue
Block a user