Skip to content

Import a 3D Model and automatically assign and export animations

TypeScript

add wings, feathers and tails to try to give them more smoothing

Scott Petrovic0ebc24eb0188
diff --git a/src/lib/solvers/BoneClassifier.ts b/src/lib/solvers/BoneClassifier.ts
index d9a9882..8694316 100644
--- a/src/lib/solvers/BoneClassifier.ts
+++ b/src/lib/solvers/BoneClassifier.ts
@@ -58,8 +58,13 @@ export class BoneClassifier {
private classify_bone (bone: Bone): BoneCategory {
const name = bone.name.toLowerCase()
- // Torso bones: spine, chest, hips, pelvis, neck
- const torso_keywords = ['spine', 'chest', 'hips', 'pelvis', 'neck', 'torso', 'abdomen', 'body']
+ // Torso bones: spine, chest, hips, pelvis, neck, wings, tails
+ // tails and feathers aren't technically torso, but we want
+ // to give them more smoothing since they aren't as rigid
+ const torso_keywords = [
+ 'spine', 'chest', 'hips', 'pelvis', 'neck', 'torso', 'abdomen', 'body',
+ 'wing', 'feather', 'tail'
+ ]
if (torso_keywords.some(kw => name.includes(kw))) {
return BoneCategory.Torso
}