Skip to content
Snippets Groups Projects
Commit e8a8a0d5 authored by Tom Fischer's avatar Tom Fischer
Browse files

[A/U/ME] Resets properties inside instead outside.

parent c2798e6d
No related branches found
No related tags found
No related merge requests found
......@@ -95,6 +95,7 @@ void resetMeshElementProperty(MeshLib::Mesh &mesh, GeoLib::Polygon const& polygo
property_name.c_str());
return;
}
MeshLib::PropertyVector<PT> & pv(opt_pv.get());
if (pv.getMeshItemType() != MeshLib::MeshItemType::Cell) {
ERR("Values of the PropertyVector are not assigned to cells.");
......@@ -114,7 +115,7 @@ void resetMeshElementProperty(MeshLib::Mesh &mesh, GeoLib::Polygon const& polygo
elem_out = false;
}
}
if (elem_out) {
if (!elem_out) {
pv[j] = new_property_value;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment