Skip to content

Commit

Permalink
#5383: Fix polygon counting in LWO loading code
Browse files Browse the repository at this point in the history
  • Loading branch information
codereader committed Nov 8, 2020
1 parent 2034a9d commit 7f3d9af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions radiantcore/model/picomodel/lib/pm_lwo.c
Expand Up @@ -296,9 +296,6 @@ static picoModel_t *_lwo_load( PM_PARAMS_LOAD )
continue;
}

/* We haven't discarded this polygon, so bump the surface polycount */
surfacePolyCount++;

for( j = 0, v = pol->v; j < 3; j++, v++ )
{
pt = &layer->point.pt[ v->index ];
Expand Down Expand Up @@ -412,6 +409,9 @@ static picoModel_t *_lwo_load( PM_PARAMS_LOAD )
numverts++;
}
}

/* We haven't discarded this polygon, so bump the surface polycount */
surfacePolyCount++;
}

/* free the hashtable */
Expand Down

0 comments on commit 7f3d9af

Please sign in to comment.