mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2026-05-15 04:54:48 +08:00
Peds form beginnings, new MetaNames, updated index field types for Bone, added EBoneFlags
This commit is contained in:
@@ -180,14 +180,14 @@ namespace CodeWalker.Project.Panels
|
||||
xform = modeltransforms[boneidx];
|
||||
xform.Column4 = Vector4.UnitW;
|
||||
//xform = Matrix.Identity;
|
||||
ushort[] pinds = skeleton.ParentIndices;
|
||||
ushort parentind = ((pinds != null) && (boneidx < pinds.Length)) ? pinds[boneidx] : (ushort)65535;
|
||||
while (parentind < pinds.Length)
|
||||
short[] pinds = skeleton.ParentIndices;
|
||||
short parentind = ((pinds != null) && (boneidx < pinds.Length)) ? pinds[boneidx] : (short)-1;
|
||||
while ((parentind >= 0) && (parentind < pinds.Length))
|
||||
{
|
||||
Matrix ptrans = (parentind < modeltransforms.Length) ? modeltransforms[parentind] : Matrix.Identity;
|
||||
ptrans.Column4 = Vector4.UnitW;
|
||||
xform = Matrix.Multiply(ptrans, xform);
|
||||
parentind = ((pinds != null) && (parentind < pinds.Length)) ? pinds[parentind] : (ushort)65535;
|
||||
parentind = ((pinds != null) && (parentind < pinds.Length)) ? pinds[parentind] : (short)-1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user