accc: fix outputting .ac files

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9241 30fe4595-0a0c-4342-8851-515496e4dcbd
This commit is contained in:
iobyte 2024-01-10 17:13:22 +00:00
parent ea6a9dcb2d
commit 91e6cf280a
2 changed files with 2 additions and 11 deletions

View File

@ -1562,12 +1562,6 @@ int printOb(FILE *ofile, ob_t &object)
if (object.numsurf == 0)
return 0;
if (!extendedStrips && !normalMapping)
{
if (!(isobjectacar && collapseObject))
stripifyOb(ofile, &object, false);
}
object.saved = true;
fprintf(ofile, "OBJECT poly\n");
fprintf(ofile, "name \"%s\"\n", object.name.c_str());
@ -1595,10 +1589,7 @@ int printOb(FILE *ofile, ob_t &object)
fprintf(ofile, "numvert %d\n", object.numvert);
for (int i = 0; i < object.numvert; i++)
{
if ((typeConvertion == _AC3DTOAC3DS
&& (extendedStrips || extendedTriangles))
|| typeConvertion == _AC3DTOAC3DGROUP
|| (typeConvertion == _AC3DTOAC3D && extendedTriangles))
if (extendedStrips || extendedTriangles)
{
fprintf(ofile, "%lf %lf %lf %lf %lf %lf\n", object.vertex[i].x,
object.vertex[i].z, -object.vertex[i].y, object.snorm[i].x,

View File

@ -58,7 +58,7 @@ double smooth_angle = 70.0;
void usage(void)
{
fprintf(stderr, "Ac3d Compiler $Revision: 1.4.8 $\n");
fprintf(stderr, "Ac3d Compiler $Revision: 1.4.9 $\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");