From: divverent Date: Tue, 12 Apr 2011 20:34:40 +0000 (+0000) Subject: fix loading "g"-less .obj files X-Git-Tag: xonotic-v0.6.0~163^2~491 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=eb97ca307696f85315bdfda447c48d6903eb6e76;p=xonotic%2Fdarkplaces.git fix loading "g"-less .obj files git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11055 d7cf8633-e32d-0410-b094-e92efae38249 --- 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(;;) {