mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-22 20:51:31 +00:00
models: md5 call R_CompressNormalMDL only once for vertex
This commit is contained in:
parent
b8bd567eb8
commit
3f20ef1bb0
1 changed files with 4 additions and 4 deletions
|
@ -469,7 +469,7 @@ ReadMD5Anim(md5_model_t *anim, const char *buffer, size_t size)
|
|||
token = COM_Parse(&curr_buff);
|
||||
anim->frameRate = (float)strtod(token, (char **)NULL);
|
||||
|
||||
R_Printf(PRINT_DEVELOPER, "%s: animation's frame rate is %f\n",
|
||||
R_Printf(PRINT_DEVELOPER, "%s: animation's frame rate is %.2f\n",
|
||||
__func__, anim->frameRate);
|
||||
}
|
||||
else if (!strcmp(token, "numAnimatedComponents"))
|
||||
|
@ -1134,10 +1134,10 @@ PrepareFrameVertex(dmdx_vert_t *vertexArray, int num_verts, daliasxframe_t *fram
|
|||
frame_out->verts[i].v[j] = (
|
||||
vertexArray[i].xyz[j] - frame_out->translate[j]
|
||||
) / frame_out->scale[j];
|
||||
|
||||
frame_out->verts[i].lightnormalindex =
|
||||
R_CompressNormalMDL(vertexArray[i].norm);
|
||||
}
|
||||
|
||||
frame_out->verts[i].lightnormalindex =
|
||||
R_CompressNormalMDL(vertexArray[i].norm);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue