Skip to content

Commit

Permalink
fixed head rendering for models with heads inside body mesh
Browse files Browse the repository at this point in the history
  • Loading branch information
v-maluka committed Jun 23, 2018
1 parent 250e2c1 commit e1df24a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/logic/visuals/ModelVisual.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,10 @@ void ModelVisual::updateBodyMesh()

void ModelVisual::updateHeadMesh()
{
// Prevents head mesh clearing for models with head inside body mesh
if (m_BodyState.headVisual.empty())
return;

for (Handle::EntityHandle e : m_PartEntities.headMeshEntities)
m_World.removeEntity(e);

Expand Down

0 comments on commit e1df24a

Please sign in to comment.