revised model loading order
[csRadar.git] / vmdl.h
diff --git a/vmdl.h b/vmdl.h
index c56266a4f29524c81b889357ba3871c9fdec87db..d6564a3a87dfe4afbb5d1d2eb73d1bb663d51ab8 100644 (file)
--- 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->hull_min, ctx->bounds[0] );
+       v3_copy( pMdl->hull_max, ctx->bounds[1] );
+       
        ctx->num_indices = vtx_count_indices( pVtxHdr );
 
        // Allocate and read indices