mirror of
https://github.com/thisistherk/fast_obj.git
synced 2025-04-04 21:15:04 +00:00
Trim trailing whitespaces from mtllib definitions
This commit is contained in:
parent
85778da5fc
commit
71e8a6a361
1 changed files with 4 additions and 0 deletions
|
@ -1198,6 +1198,10 @@ const char* parse_mtllib(fastObjData* data, const char* ptr, const fastObjCallba
|
|||
e = ptr;
|
||||
|
||||
lib = string_concat(data->base, s, e);
|
||||
|
||||
while (lib[strlen(lib) - 1] == ' ')
|
||||
lib[strlen(lib) - 1] = '\0';
|
||||
|
||||
if (lib)
|
||||
{
|
||||
string_fix_separators(lib);
|
||||
|
|
Loading…
Add table
Reference in a new issue