LGTM: [skip ci] fix: Resource not released in destructor

This commit is contained in:
wmayer
2020-07-25 14:48:59 +02:00
parent 16edad7afd
commit 584a1bf442
3 changed files with 3 additions and 3 deletions

View File

@@ -2363,7 +2363,7 @@ void ViewProviderMeshObject::updateData(const App::Property* prop)
ViewProviderMesh::updateData(prop);
if (prop->getTypeId() == Mesh::PropertyMeshKernel::getClassTypeId()) {
const Mesh::PropertyMeshKernel* mesh = static_cast<const Mesh::PropertyMeshKernel*>(prop);
this->pcMeshNode->mesh.setValue(mesh->getValuePtr());
this->pcMeshNode->mesh.setValue(Base::Reference<const Mesh::MeshObject>(mesh->getValuePtr()));
// Needs to update internal bounding box caches
this->pcMeshShape->touch();
}