diff options
author | Hans Goudey <h.goudey@me.com> | 2022-04-26 16:06:04 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-04-26 16:06:04 +0300 |
commit | db45292d8e0c29f399cba191e33f8388d9254357 (patch) | |
tree | c5540f9c433449f1d0e1d05a9a7daa209db8b62f /source/blender/blenkernel/BKE_geometry_set.hh | |
parent | b7458f909cc2ada343207603f0ecbf0c42b28173 (diff) |
Cleanup: Move anonymous attribute removal to geometry component
Implementing removal of anonymous attributes with `GeometryComponent`
instead of `Mesh` makes it more reusable for other types like curves.
Diffstat (limited to 'source/blender/blenkernel/BKE_geometry_set.hh')
-rw-r--r-- | source/blender/blenkernel/BKE_geometry_set.hh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_geometry_set.hh b/source/blender/blenkernel/BKE_geometry_set.hh index 559007d1aee..dfd9fccebbd 100644 --- a/source/blender/blenkernel/BKE_geometry_set.hh +++ b/source/blender/blenkernel/BKE_geometry_set.hh @@ -148,6 +148,12 @@ class GeometryComponent { /** Returns true when the attribute has been deleted. */ bool attribute_try_delete(const blender::bke::AttributeIDRef &attribute_id); + /** + * Remove any anonymous attributes on the geometry (they generally shouldn't exist on original + * geometry). + */ + void attributes_remove_anonymous(); + /** Returns true when the attribute has been created. */ bool attribute_try_create(const blender::bke::AttributeIDRef &attribute_id, AttributeDomain domain, |