Commit f72d9cc2 authored by Martin Heistermann's avatar Martin Heistermann

Use new ovm copy constructor instead of copying the pointer

parent 148efd27
......@@ -72,7 +72,7 @@
template<class MeshT>
VolumeMeshObject<MeshT>::VolumeMeshObject(const VolumeMeshObject& _object) :
BaseObjectData(_object), mesh_(_object.mesh_.get()),
BaseObjectData(_object), mesh_(std::make_shared<MeshT>(*_object.mesh_.get())),
statusAttrib_(*mesh_),
colorAttrib_(*mesh_),
normalAttrib_(*mesh_),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment