mirror of
https://mirror.ghproxy.com/https://github.com/dexyfex/CodeWalker
synced 2024-11-22 23:12:59 +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++)
|
||||
{
|
||||
var thisSeq = animChannelList.Where(a => a.Sequence == i);
|
||||
|
||||
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];
|
||||
|
||||
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;
|
||||
bone.AnimRotation = q;
|
||||
break;
|
||||
case 2: //scale?
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user