From eb97ca307696f85315bdfda447c48d6903eb6e76 Mon Sep 17 00:00:00 2001 From: divverent Date: Tue, 12 Apr 2011 20:34:40 +0000 Subject: [PATCH] fix loading "g"-less .obj files git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11055 d7cf8633-e32d-0410-b094-e92efae38249 --- model_brush.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/model_brush.c b/model_brush.c index 1051d280..924cfcfe 100644 --- a/model_brush.c +++ b/model_brush.c @@ -7311,6 +7311,9 @@ void Mod_OBJ_Load(dp_model_t *mod, void *buffer, void *bufferend) VectorClear(mins); VectorClear(maxs); + // we always have model 0, i.e. the first "submodel" + loadmodel->brush.numsubmodels = 1; + // parse the OBJ text now for(;;) { -- 2.39.2