]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix loading "g"-less .obj files
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 12 Apr 2011 20:34:40 +0000 (20:34 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 12 Apr 2011 20:34:40 +0000 (20:34 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11055 d7cf8633-e32d-0410-b094-e92efae38249

model_brush.c

index 1051d280c0ba76388f67013bd1651d46ecee1396..924cfcfe6ff81db6f4720daaa9d64482b87b1397 100644 (file)
@@ -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(;;)
        {