mirror of https://github.com/CGAL/cgal
+ Recompute distance function when mouse button is pressed (avoids buggy behavior if object is animated when button is pressed).
This commit is contained in:
parent
f8638f27cd
commit
fe1cf837ce
|
|
@ -35,6 +35,8 @@ void Viewer::mousePressEvent(QMouseEvent* e)
|
|||
if ( e->modifiers() == Qt::ControlModifier )
|
||||
{
|
||||
m_pScene->set_fast_distance(true);
|
||||
// Refresh distance function
|
||||
m_pScene->cutting_plane();
|
||||
m_custom_mouse = true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue