From db45292d8e0c29f399cba191e33f8388d9254357 Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Tue, 26 Apr 2022 08:06:04 -0500 Subject: 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. --- source/blender/blenkernel/BKE_geometry_set.hh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/blender/blenkernel/BKE_geometry_set.hh') 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, -- cgit v1.2.3