From abb0cebcfea9590dfff3c5f25ae23bf6a67e555f Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Wed, 17 Aug 2022 19:49:06 +0100 Subject: [PATCH] Polyhedron Demo: Make input invisible after Boolean operation --- Polyhedron/demo/Polyhedron/Plugins/PMP/Corefinement_plugin.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Polyhedron/demo/Polyhedron/Plugins/PMP/Corefinement_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/PMP/Corefinement_plugin.cpp index 7df1bd37920..96636a12d51 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/PMP/Corefinement_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/PMP/Corefinement_plugin.cpp @@ -233,6 +233,7 @@ private: { CGAL::Three::Three::warning(tr("The requested operation is not possible due to the presence of self-intersections in the neighborhood of the intersection.")); QApplication::restoreOverrideCursor(); + return; } first_item->invalidateOpenGLBuffers(); @@ -245,6 +246,8 @@ private: new_item->setColor(first_item->color()); new_item->setRenderingMode(first_item->renderingMode()); new_item->setVisible(first_item->visible()); + first_item->setVisible(false); + item->setVisible(false); scene->addItem(new_item); new_item->invalidateOpenGLBuffers();