stlmeshing - set shared ptr

This commit is contained in:
Joachim Schoeberl 2014-12-11 15:27:45 +00:00
parent 50e5b2ef7b
commit dade5551b5

View File

@ -1340,8 +1340,11 @@ int STLMeshingDummy (STLGeometry* stlgeometry, shared_ptr<Mesh> & mesh, MeshingP
if (perfstepsstart <= MESHCONST_MESHEDGES)
{
if (mesh)
mesh -> DeleteMesh();
else
mesh = make_shared<Mesh>();
mesh = make_shared<Mesh>();
mesh->geomtype = Mesh::GEOM_STL;
mesh -> SetGlobalH (mparam.maxh);