Fix morph target issue where more than 4 targets were not interpolating correctly.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5926 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2021-07-01 01:16:16 +00:00
parent 8c0646159f
commit df83d72837

View file

@ -2923,7 +2923,7 @@ static void LerpAnimData(const struct gltf_animsampler *samp, float time, float
{
float t0, t1;
float w0, w1;
float v0[4], v1[4];
float v0[max(4,MAX_MORPHWEIGHTS)], v1[max(4,MAX_MORPHWEIGHTS)];
int f0, f1, c;
const struct gltf_accessor *in = &samp->input;