mirror of
https://notabug.org/scuti/lib3ddevil1
synced 2026-04-19 07:10:31 +05:30
Meshes with multiple batches handled
This commit is contained in:
@@ -117,14 +117,15 @@ void extractmeshes(const char *filedata,
|
||||
unsigned int i;
|
||||
unsigned int j;
|
||||
bool ok;
|
||||
//h -> numMesh
|
||||
//for (i = 0; i < 5; i++) {
|
||||
for (i = 0; i < h -> numMesh; i++) {
|
||||
ok = getmeshheader(&mh, i, filedata);
|
||||
if (ok) {
|
||||
// for (j = 0; j < mh -> numBatch; j++) {
|
||||
getmeshbatch(&b, mh, filedata);
|
||||
for (j = 0; j < mh -> numBatch; j++) {
|
||||
unsigned int offset = mh->offsetBatches + j * sizeof(struct BatchData);
|
||||
getmeshbatch(&b, offset, filedata);
|
||||
printmeshbatch(&b);
|
||||
// } // end for
|
||||
} // end for
|
||||
} // end if
|
||||
} // end for
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user