trackgen: fix crash from missing texture
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9107 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: b6bed816bc24613620c8df88870d043c91054130 Former-commit-id: 1f9ad9917269965fe9a43b6e38563320100da4e8
This commit is contained in:
parent
24bde8623a
commit
53a744fc8c
2 changed files with 3 additions and 1 deletions
|
@ -2442,6 +2442,8 @@ void stripifyOb(FILE * ofile, ob_t * object, bool writeit)
|
|||
|
||||
if (object->numsurf < 3 && !writeit)
|
||||
return;
|
||||
if (object->vertexarray.size() < 3)
|
||||
return;
|
||||
fprintf(stderr, "stripifying %s \r", object->name.c_str());
|
||||
sprintf(filename, "temp.obj");
|
||||
stripeout = fopen(filename, "w");
|
||||
|
|
|
@ -58,7 +58,7 @@ double smooth_angle = 70.0;
|
|||
|
||||
void usage(void)
|
||||
{
|
||||
fprintf(stderr, "Ac3d Compiler $Revision: 1.4.4 $\n");
|
||||
fprintf(stderr, "Ac3d Compiler $Revision: 1.4.5 $\n");
|
||||
fprintf(stderr, "Usage: accc [option] <inputfile> <outputfile> [dist][-order \"orderstring\"]<\n");
|
||||
fprintf(stderr, "+o: ac3d to ac3d : the result file is optimized\n");
|
||||
fprintf(stderr, " in using groups by zone of track\n");
|
||||
|
|
Loading…
Reference in a new issue