From b7269f5d3fdfb59141af5147279fa28773cb8380 Mon Sep 17 00:00:00 2001 From: Paolo Cignoni cignoni Date: Thu, 28 Feb 2008 09:57:40 +0000 Subject: [PATCH] corrected bug: wrong selection when Tr matrix != identity --- src/meshlabplugins/meshedit/meshedit.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/meshlabplugins/meshedit/meshedit.cpp b/src/meshlabplugins/meshedit/meshedit.cpp index d7a768d19..f097d6adc 100644 --- a/src/meshlabplugins/meshedit/meshedit.cpp +++ b/src/meshlabplugins/meshedit/meshedit.cpp @@ -23,6 +23,9 @@ /**************************************************************************** History $Log$ +Revision 1.12 2008/02/28 09:57:40 cignoni +corrected bug: wrong selection when Tr matrix != identity + Revision 1.11 2007/10/23 07:15:19 cignoni switch to selection rendering done by slot and signals @@ -228,11 +231,13 @@ const PluginInfo &ExtraMeshEditPlugin::Info() CMeshO::FaceIterator fi; for(fi=m.cm.face.begin();fi!=m.cm.face.end();++fi) if(!(*fi).IsD()) (*fi).ClearS(); - + + glPushMatrix(); + glMultMatrix(m.cm.Tr); GLPickTri::PickFace(mid.x(), mid.y(), m.cm, NewSel, wid.x(), wid.y()); qDebug("Pickface: rect %i %i - %i %i",mid.x(),mid.y(),wid.x(),wid.y()); qDebug("Pickface: Got %i on %i",NewSel.size(),m.cm.face.size()); - + glPopMatrix(); switch(selMode) { case SMSub :