mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2026-05-14 13:24:48 +08:00
Increased resilience to some modded drawables
This commit is contained in:
@@ -580,7 +580,7 @@ namespace CodeWalker.Rendering
|
||||
|
||||
public override void SetModelVars(DeviceContext context, RenderableModel model)
|
||||
{
|
||||
if (model.Owner.Skeleton?.BoneTransforms != null)
|
||||
if ((model.Owner.Skeleton?.BoneTransforms != null) && (model.Owner.Skeleton.BoneTransforms.Length > 0))
|
||||
{
|
||||
SetBoneMatrices(context, model.Owner.Skeleton.BoneTransforms);
|
||||
defaultBoneMatricesBound = false;
|
||||
|
||||
@@ -235,7 +235,7 @@ namespace CodeWalker.Rendering
|
||||
|
||||
public override void SetModelVars(DeviceContext context, RenderableModel model)
|
||||
{
|
||||
if (model.Owner.Skeleton?.BoneTransforms != null)
|
||||
if ((model.Owner.Skeleton?.BoneTransforms != null) && (model.Owner.Skeleton.BoneTransforms.Length > 0))
|
||||
{
|
||||
SetBoneMatrices(context, model.Owner.Skeleton.BoneTransforms);
|
||||
defaultBoneMatricesBound = false;
|
||||
|
||||
Reference in New Issue
Block a user