Fix for bones on peds drawables with existing skeletons. Also included code to use geometry-specific bone matrices where boneIds array is used, but commented out since it never seems necessary (leaving in for reference)

This commit is contained in:
dexy
2019-11-09 21:07:41 +11:00
Unverified
parent 20545145a5
commit 03fa5575bf
5 changed files with 73 additions and 2 deletions
@@ -924,7 +924,7 @@ namespace CodeWalker.GameFiles
var pbone = Parent;
while (pbone != null)
{
pos = pbone.AnimRotation.Multiply(pos) + pbone.AnimTranslation;
pos = pbone.AnimRotation.Multiply(pos * pbone.AnimScale) + pbone.AnimTranslation;
ori = pbone.AnimRotation * ori;
pbone = pbone.Parent;
}