From 79757328fe83af30d044375f8cd2cdb68b6909cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Tue, 16 Nov 2021 22:22:45 +0100 Subject: [PATCH] create normal map only if normal estimation is done --- .../Point_set/Point_set_normal_estimation_plugin.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Polyhedron/demo/Polyhedron/Plugins/Point_set/Point_set_normal_estimation_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/Point_set/Point_set_normal_estimation_plugin.cpp index 9b36f3194be..2f05e738308 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/Point_set/Point_set_normal_estimation_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/Point_set/Point_set_normal_estimation_plugin.cpp @@ -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();