66 |
|
group[0] = '\0'; |
67 |
|
lineno = 0; faceno = 0; |
68 |
|
/* scan until EOF */ |
69 |
< |
while (argc = getstmt(argv, fp)) { |
69 |
> |
while ( (argc = getstmt(argv, fp)) ) { |
70 |
|
switch (argv[0][0]) { |
71 |
|
case 'v': /* vertex */ |
72 |
|
switch (argv[0][1]) { |
292 |
|
RREAL *v1c, *v2c, *v3c; |
293 |
|
RREAL *v1n, *v2n, *v3n; |
294 |
|
|
295 |
< |
if (!cvtndx(v1i, v1) || !cvtndx(v2i, v2) || !cvtndx(v3i, v3)) |
295 |
> |
if (!cvtndx(v1i, v1) || !cvtndx(v2i, v2) || !cvtndx(v3i, v3)) { |
296 |
> |
error(WARNING, "bad vertex reference"); |
297 |
|
return(0); |
298 |
< |
|
298 |
> |
} |
299 |
|
if (v1i[1]>=0 && v2i[1]>=0 && v3i[1]>=0) { |
300 |
|
v1c = vtlist[v1i[1]]; |
301 |
|
v2c = vtlist[v2i[1]]; |