From 490f8e7da47e2f8ba61232dbca6f4a29be0ac5d3 Mon Sep 17 00:00:00 2001 From: Paolo Cignoni cignoni Date: Sat, 22 Mar 2008 07:38:55 +0000 Subject: [PATCH] To avoid that a filter changes something assumed by the current editing tool, before actually starting the filter we close the current editing tool (if any). --- src/meshlab/mainwindow_RunTime.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/meshlab/mainwindow_RunTime.cpp b/src/meshlab/mainwindow_RunTime.cpp index 384e18ae6..51dc47962 100644 --- a/src/meshlab/mainwindow_RunTime.cpp +++ b/src/meshlab/mainwindow_RunTime.cpp @@ -24,6 +24,9 @@ History $Log$ +Revision 1.154 2008/03/22 07:38:55 cignoni +To avoid that a filter changes something assumed by the current editing tool, before actually starting the filter we close the current editing tool (if any). + Revision 1.153 2008/03/14 15:22:28 corsini fix decoration menu @@ -477,6 +480,11 @@ void MainWindow::startFilter() if(GLA() == NULL && iFilter->getClass(action) != MeshFilterInterface::MeshCreation) return; + // In order to avoid that a filter changes something assumed by the current editing tool, + // before actually starting the filter we close the current editing tool (if any). + GLA()->endEdit(); + updateMenus(); + if(iFilter->getClass(action) == MeshFilterInterface::MeshCreation) { int mask = 0;