mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-19 19:14:42 +00:00
removed compile time problems and crash
This commit is contained in:
parent
62868fe5be
commit
41fb35f5cb
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user