Skip to content

Commit

Permalink
also copy placement when copying a mesh
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed May 13, 2019
1 parent ae1723b commit 0e86b2a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Mod/Mesh/App/MeshPyImp.cpp
Expand Up @@ -143,8 +143,7 @@ PyObject* MeshPy::copy(PyObject *args)
if (!PyArg_ParseTuple(args, ""))
return NULL;

const MeshCore::MeshKernel& kernel = getMeshObjectPtr()->getKernel();
return new MeshPy(new MeshObject(kernel));
return new MeshPy(new MeshObject(*getMeshObjectPtr()));
}

PyObject* MeshPy::read(PyObject *args, PyObject *kwds)
Expand Down

0 comments on commit 0e86b2a

Please sign in to comment.