Merge branch 'removeprints' of scuti/lib3ddevil1 into a/writemesh

This commit is contained in:
suhrke 2018-04-19 04:41:16 -07:00 committed by Gitea
commit 10402c2649
2 changed files with 0 additions and 2 deletions

View File

@ -62,6 +62,5 @@ void append(const char *filename, const char *t, unsigned size) {
if (written == 0) {
perror("write error");
}
printf("wrote %x\n", written);
}
}

View File

@ -46,7 +46,6 @@ void writemesh(const struct MeshHeader *mh,
for (int i = 0; i < newmh.numBatch; i++) {
unsigned int nVertices = m -> b -> bd[i].numVertex;
append(fn, (char*)(m -> b[i].vd.positions), sizeof(struct Coordinate) * nVertices);
DEVIL1GEO.printcoordinate(m -> b -> vd.positions, 3);
append(fn, (char*)(m -> b[i].vd.normals), sizeof(struct Coordinate) * nVertices);
append(fn, (char*)(m -> b[i].vd.u), sizeof(struct UVs) * nVertices);
append(fn, (char*)(m -> b[i].vd.bi), sizeof(struct BoneIndexes) * nVertices);