Merge branch 'fix-retain-deprecation-warning' into 'master'

Fix warning by not calling now-empty and deprecated retain().

See merge request OpenMesh/OpenMesh!352
This commit is contained in:
Jan Möbius
2025-04-08 07:09:56 +00:00

View File

@@ -390,7 +390,6 @@ class PropertyManager {
const PROP_VALUE &init_value) { const PROP_VALUE &init_value) {
const bool exists = propertyExists(mesh, propname); const bool exists = propertyExists(mesh, propname);
PropertyManager pm(mesh, propname, exists); PropertyManager pm(mesh, propname, exists);
pm.retain();
if (!exists) if (!exists)
pm.set_range(begin, end, init_value); pm.set_range(begin, end, init_value);
return std::move(pm); return std::move(pm);