X-Git-Url: https://harrygodden.com/git/?p=csRadar.git;a=blobdiff_plain;f=vmdl.h;h=59d6acbe8c5288e16858063bd6ee5ed5464fda1c;hp=c56266a4f29524c81b889357ba3871c9fdec87db;hb=b95752d31a7b1e224b227093f13a72d8c2b7f34b;hpb=8b0bdf193803011746a916cac0736ad3574ffa71 diff --git a/vmdl.h b/vmdl.h index c56266a..59d6acb 100644 --- a/vmdl.h +++ b/vmdl.h @@ -461,8 +461,8 @@ typedef struct float *vertices; u32 num_vertices; - v3f mins; - v3f maxs; + // Bounding box + boxf bounds; } mdl_mesh_t; @@ -523,6 +523,9 @@ int mdl_from_find_files( const char *mdlname, mdl_mesh_t *ctx ) return 0; } + v3_copy( pMdl->view_bbmin, ctx->bounds[0] ); + v3_copy( pMdl->view_bbmax, ctx->bounds[1] ); + ctx->num_indices = vtx_count_indices( pVtxHdr ); // Allocate and read indices