diff --git a/Polyhedron/demo/Polyhedron/Plugins/PCA/Edit_box_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/PCA/Edit_box_plugin.cpp index 38f6d7035f9..8a7e5059211 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/PCA/Edit_box_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/PCA/Edit_box_plugin.cpp @@ -145,8 +145,9 @@ void Edit_box_plugin::exportToPoly() points[6], *poly_item->polyhedron()); CGAL::Polygon_mesh_processing::triangulate_faces(*poly_item->polyhedron()); - item->setName("Edit box"); - item->setRenderingMode(FlatPlusEdges); + poly_item->setName("Edit box"); + poly_item->setRenderingMode(FlatPlusEdges); + poly_item->invalidateOpenGLBuffers(); scene->replaceItem(id, poly_item, true); item->deleteLater(); actionBbox->setEnabled(true);