mirror of https://github.com/CGAL/cgal
create normal map only if normal estimation is done
This commit is contained in:
parent
b26fa9b5ba
commit
79757328fe
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue