mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2024-11-27 01:12:54 +08:00
Fix loading some YCDs
This commit is contained in:
parent
6f0a7d99f9
commit
b61899dedf
@ -1072,9 +1072,13 @@ namespace CodeWalker.GameFiles
|
|||||||
|
|
||||||
for (int i = 0; i < Sequences.Length; i++)
|
for (int i = 0; i < Sequences.Length; i++)
|
||||||
{
|
{
|
||||||
var thisSeq = animChannelList.Where(a => a.Sequence == i);
|
|
||||||
|
|
||||||
Sequences[i] = new AnimSequence();
|
Sequences[i] = new AnimSequence();
|
||||||
|
|
||||||
|
var thisSeq = animChannelList.Where(a => a.Sequence == i);
|
||||||
|
if (thisSeq.Count() == 0)
|
||||||
|
{ continue; }
|
||||||
|
|
||||||
|
|
||||||
Sequences[i].Channels = new AnimChannel[thisSeq.Max(a => a.Index) + 1];
|
Sequences[i].Channels = new AnimChannel[thisSeq.Max(a => a.Index) + 1];
|
||||||
|
|
||||||
for (int j = 0; j < Sequences[i].Channels.Length; j++)
|
for (int j = 0; j < Sequences[i].Channels.Length; j++)
|
||||||
|
@ -430,6 +430,8 @@ namespace CodeWalker.Rendering
|
|||||||
var q = interpolate ? Quaternion.Slerp(q0, q1, falpha) : q0;
|
var q = interpolate ? Quaternion.Slerp(q0, q1, falpha) : q0;
|
||||||
bone.AnimRotation = q;
|
bone.AnimRotation = q;
|
||||||
break;
|
break;
|
||||||
|
case 2: //scale?
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user