Peds no longer sharing skeletons, Cutscene object AnimHash conflict resolution

This commit is contained in:
dexy
2019-11-26 17:00:41 +11:00
Unverified
parent 17dcdd88a1
commit 91873ea87a
7 changed files with 215 additions and 71 deletions
+2 -2
View File
@@ -574,9 +574,9 @@ namespace CodeWalker.Rendering
public override void SetModelVars(DeviceContext context, RenderableModel model)
{
if (model.Owner.BoneTransforms != null)
if (model.Owner.Skeleton?.BoneTransforms != null)
{
SetBoneMatrices(context, model.Owner.BoneTransforms);
SetBoneMatrices(context, model.Owner.Skeleton.BoneTransforms);
defaultBoneMatricesBound = false;
}
else if (!defaultBoneMatricesBound)