umasteeringgroup / UMA

Unity Multipurpose Avatar
MIT License
726 stars 167 forks source link

Bone not found exception #376

Closed brzGatsu closed 2 years ago

brzGatsu commented 2 years ago

I have a wardrobe recipe that hides everything except for the head. UMA perfectly optimizes the unneeded bones away. However, in play mode UMASkeleton::GetRelativePosition is triggered which calls BaseCharacterModifier::UpdateCharacterHeightMassRadius. This triggers a "Bone not found" Exception when trying to access the "Left/RightUpperLeg" boneHashData. The functions of BaseCharacterModifier should handle this gracefully without an exception being thrown by checking first skeleton.BoneExists.

Jaimi commented 2 years ago

Fixed in 2.13