Skip to content

Commit

Permalink
Merge pull request #351 from umbrella-vasiliy-maluka/fix-models-head
Browse files Browse the repository at this point in the history
Fix models head
  • Loading branch information
ataulien authored Jul 1, 2018
2 parents 778a5cf + 3f4dcd1 commit b3c4837
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 b3c4837

Please sign in to comment.