mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-26 13:50:53 +00:00
fix iqm crash bug.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5124 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
2b3d8b39e4
commit
9221a1a6ae
1 changed files with 5 additions and 2 deletions
|
@ -1095,6 +1095,11 @@ static int Alias_FindRawSkelData(galiasinfo_t *inf, framestate_t *fstate, skelle
|
|||
|
||||
if (cbone <= firstbone || endbone > lastbone)
|
||||
{
|
||||
lerps->firstbone = max(cbone, firstbone);
|
||||
lerps->endbone = max(lerps->firstbone, min(endbone, lastbone));
|
||||
if (lerps->firstbone == lerps->endbone)
|
||||
continue;
|
||||
|
||||
if (!inf->numanimations || !Alias_BuildSkelLerps(lerps, &fstate->g[bonegroup], inf->numbones, inf)) //if there's no animations in this model, use the base pose instead.
|
||||
{
|
||||
if (!inf->baseframeofs)
|
||||
|
@ -1104,8 +1109,6 @@ static int Alias_FindRawSkelData(galiasinfo_t *inf, framestate_t *fstate, skelle
|
|||
lerps->pose[0] = inf->baseframeofs;
|
||||
lerps->lerpcount = 1;
|
||||
}
|
||||
lerps->firstbone = max(cbone, firstbone);
|
||||
lerps->endbone = min(endbone, lastbone);
|
||||
numbonegroups++;
|
||||
lerps++;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue