Reset ped model to T pose when no animatino selected

This commit is contained in:
dexy
2019-11-08 18:58:56 +11:00
Unverified
parent 8bea5281f0
commit 629ee125a5
3 changed files with 26 additions and 6 deletions
+7
View File
@@ -2512,6 +2512,13 @@ namespace CodeWalker.Rendering
rndbl.ClipDict = animClip.Clip?.Ycd;
rndbl.HasAnims = true;
}
else if ((arche == null) && (rndbl.ClipMapEntry != null))
{
rndbl.ClipMapEntry = null;
rndbl.ClipDict = null;
rndbl.HasAnims = false;
rndbl.ResetBoneTransforms();
}
return RenderRenderable(rndbl, arche, entity);
}