This commit is contained in:
Maxime Gimeno 2020-06-30 15:11:59 +02:00
parent a998ee4c21
commit b0a2f636ca
3 changed files with 3 additions and 8 deletions

View File

@ -17,7 +17,6 @@
#include <QDesktopServices>
#include <QUrl>
#include <fstream>
#include "MainWindow.h"
#include <gsl/pointers>

View File

@ -37,8 +37,6 @@
#include <memory> // std::shared_ptr
#include "MainWindow.h"
namespace CGAL{
template <class TriangleMesh, class GeomTraits>
@ -512,8 +510,8 @@ void Polyhedron_demo_offset_meshing_plugin::offset_meshing()
[this, item, angle, sizing, approx, offset_value, index]
(SMesh *new_mesh){
QApplication::restoreOverrideCursor();
CGAL::Three::Three::isLocked() = false;
if(!new_mesh){
CGAL::Three::Three::isLocked() = false;
return;
}
Scene_surface_mesh_item* new_item = new Scene_surface_mesh_item(new_mesh);
@ -529,7 +527,7 @@ void Polyhedron_demo_offset_meshing_plugin::offset_meshing()
item->setVisible(false);
CGAL::Three::Three::scene()->itemChanged(index);
QApplication::restoreOverrideCursor();
CGAL::Three::Three::isLocked() = false;
});
QMessageBox* message_box = new QMessageBox(QMessageBox::NoIcon,
"Meshing",

View File

@ -49,7 +49,6 @@ Scene::Scene(QObject* parent)
Scene::Item_id
Scene::addItem(CGAL::Three::Scene_item* item)
{
qDebug()<<"add "<<item->name();
Bbox bbox_before = bbox();
m_entries.push_back(item);
Item_id id = m_entries.size() - 1;
@ -170,9 +169,8 @@ Scene::erase(Scene::Item_id index)
{
if(index <0 || index >= numberOfEntries())
return -1;
CGAL::Three::Scene_item* item = m_entries[index];
qDebug()<<"remove "<<item->name();
if(qobject_cast<Scene_group_item*>(item))
{
setSelectedItemsList(QList<Scene_interface::Item_id>()<<item_id(item));