diff options
author | Hans Goudey <h.goudey@me.com> | 2022-11-10 23:38:49 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-11-11 00:29:21 +0300 |
commit | ca1642cd0c5cdf634fe2022c955d93983de95934 (patch) | |
tree | 4d12e830e6c4eb6a8e9d39bdd5a0a5e6ce23301c /source/blender/editors/geometry/geometry_attributes.cc | |
parent | 34f4646786dad75b418250cc8e4bf92441434d00 (diff) |
Cleanup: Use string argument for attribute API function
Instead of CustomDataLayer, which exposes the internal implementation
more than necessary, and requires that the layer is always available,
which isn't always true.
Diffstat (limited to 'source/blender/editors/geometry/geometry_attributes.cc')
-rw-r--r-- | source/blender/editors/geometry/geometry_attributes.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/geometry/geometry_attributes.cc b/source/blender/editors/geometry/geometry_attributes.cc index 2233c6d59ad..7f163da493b 100644 --- a/source/blender/editors/geometry/geometry_attributes.cc +++ b/source/blender/editors/geometry/geometry_attributes.cc @@ -98,7 +98,7 @@ static int geometry_attribute_add_exec(bContext *C, wmOperator *op) return OPERATOR_CANCELLED; } - BKE_id_attributes_active_set(id, layer); + BKE_id_attributes_active_set(id, layer->name); DEG_id_tag_update(id, ID_RECALC_GEOMETRY); WM_main_add_notifier(NC_GEOM | ND_DATA, id); |