Commit 8db5ec3f authored by Pierre Kraemer's avatar Pierre Kraemer

SCHNApps: change the way to update views after map or attribute update

parent 7b6088f7
......@@ -66,12 +66,9 @@ void DifferentialPropertiesPlugin::cb_computeNormal()
if(m_computeNormalDialog->check_createVBO->checkState() == Qt::Checked)
mh->createVBO(normal);
QList<View*> views = m_window->getViewsList();
QList<View*> views = mh->getLinkedViews();
foreach(View* view, views)
{
if(view->isLinkedToMap(mh))
view->updateGL();
}
view->updateGL();
}
}
......@@ -157,12 +154,9 @@ void DifferentialPropertiesPlugin::cb_computeCurvature()
if(m_computeCurvatureDialog->check_KnormalCreateVBO->checkState() == Qt::Checked)
mh->createVBO(Knormal);
QList<View*> views = m_window->getViewsList();
QList<View*> views = mh->getLinkedViews();
foreach(View* view, views)
{
if(view->isLinkedToMap(mh))
view->updateGL();
}
view->updateGL();
}
}
......
......@@ -89,12 +89,9 @@ void SubdivideSurfacePlugin::cb_loopSubdivision()
mh->updatePrimitives(Algo::Render::GL2::TRIANGLES);
mh->updateVBO(position);
QList<View*> views = m_window->getViewsList();
QList<View*> views = mh->getLinkedViews();
foreach(View* view, views)
{
if(view->isLinkedToMap(mh))
view->updateGL();
}
view->updateGL();
}
}
......@@ -116,12 +113,9 @@ void SubdivideSurfacePlugin::cb_CCSubdivision()
mh->updatePrimitives(Algo::Render::GL2::TRIANGLES);
mh->updateVBO(position);
QList<View*> views = m_window->getViewsList();
QList<View*> views = mh->getLinkedViews();
foreach(View* view, views)
{
if(view->isLinkedToMap(mh))
view->updateGL();
}
view->updateGL();
}
}
......@@ -143,12 +137,9 @@ void SubdivideSurfacePlugin::cb_trianguleFaces()
mh->updatePrimitives(Algo::Render::GL2::TRIANGLES);
mh->updateVBO(position);
QList<View*> views = m_window->getViewsList();
QList<View*> views = mh->getLinkedViews();
foreach(View* view, views)
{
if(view->isLinkedToMap(mh))
view->updateGL();
}
view->updateGL();
}
}
......
Markdown is supported
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