Skip to content

Commit

Permalink
Fix unnecessary warning message in mttlib loader
Browse files Browse the repository at this point in the history
I recently removed Ka parsing, as we don't use it, but forgot that just
removing the case entirely emits a warning in verbose mode.
  • Loading branch information
vkoskiv committed Nov 4, 2023
1 parent f249297 commit 264803c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/utils/loaders/formats/wavefront/mtlloader.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ struct material *parseMTLFile(const char *filePath, int *mtlCount, struct file_c
return NULL;
}
current->name = stringCopy(peekNextToken(&line));
} else if (stringEquals(first, "Ka")) {
// Ignore
} else if (stringEquals(first, "Kd")) {
current->diffuse = parse_color(&line);
} else if (stringEquals(first, "Ks")) {
Expand Down

0 comments on commit 264803c

Please sign in to comment.