vk: throttle zero normal messages

This commit is contained in:
Ivan Avdeev 2024-01-19 11:42:15 -05:00
parent 073dbc55f8
commit 6ee8af040e
1 changed files with 2 additions and 1 deletions

View File

@ -1719,7 +1719,8 @@ static void buildSubmodelMeshGeometry( build_submodel_mesh_t args ) {
{
const float normal_len2 = DotProduct(g_studio.norms[vi], g_studio.norms[vi]);
if (normal_len2 < .9f) {
ERR("model=%s bodypart=%d vert=%d+%d=%d vi=%d normal=(%f,%f,%f) INVALID len2=%f",
ERROR_THROTTLED(10,
"model=%s bodypart=%d vert=%d+%d=%d vi=%d normal=(%f,%f,%f) INVALID len2=%f",
g_studio_current.entmodel->studio_header->name,
g_studio_current.bodypart_index,
j, vertex_offset, j + vertex_offset, vi,