cropping
[csRadar.git] / vmdl.h
diff --git a/vmdl.h b/vmdl.h
index 7b5bb07263dec764036883064c23158afffbf29f..59d6acbe8c5288e16858063bd6ee5ed5464fda1c 100644 (file)
--- a/vmdl.h
+++ b/vmdl.h
@@ -460,6 +460,9 @@ typedef struct
        
        float *vertices;
        u32     num_vertices;
+       
+       // Bounding box
+       boxf bounds;
 } 
 mdl_mesh_t;
 
@@ -520,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