Fix a couple of issues when importing obj files.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5810 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
d4606452e6
commit
9d2573f708
1 changed files with 2 additions and 2 deletions
|
@ -2590,7 +2590,7 @@ bool parseobj(stream *f)
|
|||
}
|
||||
case 'u':
|
||||
{
|
||||
if(!strncmp(c, "usemtl", 6)) continue;
|
||||
if(strncmp(c, "usemtl", 6)) continue;
|
||||
while(isalpha(*c)) c++;
|
||||
while(isspace(*c)) c++;
|
||||
char *name = c;
|
||||
|
@ -5732,7 +5732,7 @@ int main(int argc, char **argv)
|
|||
break;
|
||||
if(j == countof(outfiles))
|
||||
{
|
||||
for (j = countof(outfiles); j --> 0; )
|
||||
for (j = countof(outfiles)-1; j > 0; j--)
|
||||
if (type && !strcasecmp(type, outputtypes[j].extname))
|
||||
break;
|
||||
outfiles[j] = argv[i]; //first arg is the output name, if its not an export script thingie.
|
||||
|
|
Loading…
Reference in a new issue