Skip to content

Commit

Permalink
fix #5047
Browse files Browse the repository at this point in the history
  • Loading branch information
rtri committed Jan 28, 2016
1 parent f889853 commit 0427719
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rts/Rendering/Models/3DModel.cpp
Expand Up @@ -335,6 +335,10 @@ void LocalModel::UpdateBoundingVolume(unsigned int frameNum)
const CMatrix44f& matrix = pieces[n].GetModelSpaceMatrix();
const S3DModelPiece* piece = pieces[n].original;

// skip empty pieces or bounds will not be sensible
if (!piece->HasGeometryData())
continue;

#if 0
const unsigned int vcount = piece->GetVertexCount();

Expand Down

0 comments on commit 0427719

Please sign in to comment.