mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 18:01:15 +00:00
Get the frame data from the right places.
Always using joint[0] of the frames wasn't very useful.
This commit is contained in:
parent
74cb49ef7c
commit
d1d4c6142c
1 changed files with 2 additions and 3 deletions
|
@ -202,7 +202,6 @@ glsl_R_DrawIQM (void)
|
|||
float blend;
|
||||
iqmframe_t *frame;
|
||||
|
||||
Sys_MaskPrintf (SYS_GLSL, "glsl_R_DrawIQM\n");
|
||||
lights = R_FindNearLights (ent->origin, MAX_IQM_LIGHTS);
|
||||
|
||||
// we need only the rotation for normals.
|
||||
|
@ -215,8 +214,8 @@ glsl_R_DrawIQM (void)
|
|||
|
||||
frame = malloc (iqm->num_joints * sizeof (iqmframe_t));
|
||||
for (i = 0; i < iqm->num_joints; i++) {
|
||||
iqmframe_t *f1 = iqm->frames[ent->pose1];
|
||||
iqmframe_t *f2 = iqm->frames[ent->pose2];
|
||||
iqmframe_t *f1 = &iqm->frames[ent->pose1][i];
|
||||
iqmframe_t *f2 = &iqm->frames[ent->pose2][i];
|
||||
DualQuatBlend (f1->rt, f2->rt, blend, frame[i].rt);
|
||||
QuatBlend (f1->shear, f2->shear, blend, frame[i].shear);
|
||||
QuatBlend (f1->scale, f2->scale, blend, frame[i].scale);
|
||||
|
|
Loading…
Reference in a new issue