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/makesrna/intern/rna_attribute.c | |
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/makesrna/intern/rna_attribute.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_attribute.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_attribute.c b/source/blender/makesrna/intern/rna_attribute.c index e1b6fb429a7..20c6e24b735 100644 --- a/source/blender/makesrna/intern/rna_attribute.c +++ b/source/blender/makesrna/intern/rna_attribute.c @@ -534,7 +534,7 @@ static void rna_AttributeGroup_active_set(PointerRNA *ptr, { ID *id = ptr->owner_id; CustomDataLayer *layer = attribute_ptr.data; - BKE_id_attributes_active_set(id, layer); + BKE_id_attributes_active_set(id, layer->name); } static void rna_AttributeGroup_active_index_set(PointerRNA *ptr, int value) |