Skip to content

Import a 3D Model and automatically assign and export animations

TypeScript

Allow _R and _L for potential naming for symmetrize

Scott Petrovic77cd09f93881
diff --git a/src/lib/Utilities.ts b/src/lib/Utilities.ts
index d595c43..9fa4c00 100644
--- a/src/lib/Utilities.ts
+++ b/src/lib/Utilities.ts
@@ -217,7 +217,7 @@ export class Utility {
// animal rig
return bone_name
- .replace(/(Right|Right_|R_|_Right|_R|Left|Left_|_Left|L_)/g, '')
+ .replace(/(Right|Right_|R_|_Right|_R|Left|Left_|_Left|L_|_R|_L)/g, '')
}
static raycast_closest_bone_test (camera: PerspectiveCamera, mouse_event: MouseEvent, skeleton: Skeleton): Array<number | null> {