create normal map only if normal estimation is done

This commit is contained in:
Sébastien Loriot 2021-11-16 22:22:45 +01:00
parent b26fa9b5ba
commit 79757328fe
1 changed files with 5 additions and 5 deletions

View File

@ -202,6 +202,11 @@ void Polyhedron_demo_point_set_normal_estimation_plugin::on_actionNormalEstimati
if(item)
{
// Gets options
Point_set_demo_normal_estimation_dialog dialog;
if(!dialog.exec())
return;
// Gets point set
Point_set* points = item->point_set();
if(points == nullptr)
@ -209,11 +214,6 @@ void Polyhedron_demo_point_set_normal_estimation_plugin::on_actionNormalEstimati
if (!(points->has_normal_map()))
points->add_normal_map();
// Gets options
Point_set_demo_normal_estimation_dialog dialog;
if(!dialog.exec())
return;
QApplication::setOverrideCursor(Qt::BusyCursor);
QApplication::processEvents();