LGTM: [skip ci] fix: Resource not released in destructor
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user