Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2022-04-26 16:06:04 +0300
committerHans Goudey <h.goudey@me.com>2022-04-26 16:06:04 +0300
commitdb45292d8e0c29f399cba191e33f8388d9254357 (patch)
treec5540f9c433449f1d0e1d05a9a7daa209db8b62f /source/blender/editors/object/object_modifier.cc
parentb7458f909cc2ada343207603f0ecbf0c42b28173 (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/editors/object/object_modifier.cc')
-rw-r--r--source/blender/editors/object/object_modifier.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/editors/object/object_modifier.cc b/source/blender/editors/object/object_modifier.cc
index 8b2dbd4a865..8dec2a5eb1c 100644
--- a/source/blender/editors/object/object_modifier.cc
+++ b/source/blender/editors/object/object_modifier.cc
@@ -41,6 +41,7 @@
#include "BKE_displist.h"
#include "BKE_editmesh.h"
#include "BKE_effect.h"
+#include "BKE_geometry_set.hh"
#include "BKE_global.h"
#include "BKE_gpencil_modifier.h"
#include "BKE_key.h"
@@ -750,7 +751,9 @@ static bool modifier_apply_obdata(
BKE_mesh_nomain_to_mesh(mesh_applied, me, ob, &CD_MASK_MESH, true);
/* Anonymous attributes shouldn't be available on the applied geometry. */
- BKE_mesh_anonymous_attributes_remove(me);
+ MeshComponent component;
+ component.replace(me, GeometryOwnershipType::Editable);
+ component.attributes_remove_anonymous();
if (md_eval->type == eModifierType_Multires) {
multires_customdata_delete(me);