Fix computing time of polyhedron_items

This commit is contained in:
Maxime Gimeno 2017-01-30 12:08:24 +01:00
parent 44a5b3673d
commit 5ed0cd8e7b
1 changed files with 2 additions and 1 deletions

View File

@ -1239,7 +1239,8 @@ invalidateOpenGLBuffers()
are_buffers_filled = false;
d->invalidate_stats();
static_cast<CGAL::Three::Viewer_interface*>(QGLViewer::QGLViewerPool().first())->updateIds(this);
if(d->all_ids_displayed)
static_cast<CGAL::Three::Viewer_interface*>(QGLViewer::QGLViewerPool().first())->updateIds(this);
}
void