removed compile time problems and crash

This commit is contained in:
Guido Ranzuglia granzuglia 2010-08-03 06:40:49 +00:00
parent 62868fe5be
commit 41fb35f5cb

View File

@ -402,7 +402,7 @@ bool MlsPlugin::applyFilter(QAction* filter, MeshDocument& md, RichParameterSet&
{
// clone the control mesh
MeshModel* ref = par.getMesh("ControlMesh");
pPoints = new MeshModel();
pPoints = md.addNewMesh("");
pPoints->updateDataMask(ref);
vcg::tri::Append<CMeshO,CMeshO>::Mesh(pPoints->cm, ref->cm); // the last true means "copy all vertices"
vcg::tri::UpdateBounding<CMeshO>::Box(pPoints->cm);
@ -604,7 +604,7 @@ bool MlsPlugin::applyFilter(QAction* filter, MeshDocument& md, RichParameterSet&
delete mls;
if ( (id & _PROJECTION_) && par.getMesh("ControlMesh")!=pPoints)
{
delete pPoints;
md.delMesh(pPoints);
}
if (mesh)