Commit 4098bd5e authored by Sreekanth Arikatla's avatar Sreekanth Arikatla
Browse files

Merge branch 'fixDeformableTetraRenderBug' into 'master'

BUG: Fixes the bug with tetrahedral rendering of deformable body

See merge request !201
parents 73022b8a 787ebfb0
......@@ -127,14 +127,11 @@ VTKSurfaceMeshRenderDelegate::VTKSurfaceMeshRenderDelegate(std::shared_ptr<Surfa
void
VTKSurfaceMeshRenderDelegate::updateDataSource()
{
if (!m_geometry->m_dataModified)
if (m_geometry->m_dataModified)
{
return;
m_mappedVertexArray->Modified();
m_geometry->m_dataModified = false;
}
m_mappedVertexArray->Modified();
m_geometry->m_dataModified = false;
}
void
......
......@@ -82,9 +82,10 @@ VTKTetrahedralMeshRenderDelegate::VTKTetrahedralMeshRenderDelegate(std::shared_p
void
VTKTetrahedralMeshRenderDelegate::updateDataSource()
{
if (!m_geometry->m_dataModified)
if (m_geometry->m_dataModified)
{
return;
m_mappedVertexArray->Modified();
m_geometry->m_dataModified = false;
}
if (m_geometry->getTopologyChangedFlag())
......@@ -115,7 +116,6 @@ VTKTetrahedralMeshRenderDelegate::updateDataSource()
m_mesh->SetCells(VTK_TETRA, cells);
m_geometry->setTopologyChangedFlag(false);
}
m_geometry->m_dataModified = true;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment