diff --git a/Applications/Utils/MeshEdit/ResetPropertiesInPolygonalRegion.cpp b/Applications/Utils/MeshEdit/ResetPropertiesInPolygonalRegion.cpp index be99d66a891c8a5d15998503514b98342b4becf0..cf3b58ae28e89c87c03d334e49711df5688048df 100644 --- a/Applications/Utils/MeshEdit/ResetPropertiesInPolygonalRegion.cpp +++ b/Applications/Utils/MeshEdit/ResetPropertiesInPolygonalRegion.cpp @@ -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; } }