diff options
author | Hans Goudey <h.goudey@me.com> | 2022-06-18 12:48:51 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-06-18 12:48:51 +0300 |
commit | 3c2a2a6c9659dd66f1a1d3a5e4153d1d2f8243eb (patch) | |
tree | 187df41cf88419bf6f0b47a863aa7967baf73cb3 /source/blender/draw/intern/draw_attributes.h | |
parent | 8a3ff496a737daa9ce5a33c2699ac0b20e52e8f0 (diff) |
Cleanup: Always store attribute name in attribute request
Previously the attribute name was only stored in the request for curves.
Instead, pass it as part of the "add request" function, so that it is
always used. Since the whole attribute pipeline is name-based,
this can simplify code in a few places.
Diffstat (limited to 'source/blender/draw/intern/draw_attributes.h')
-rw-r--r-- | source/blender/draw/intern/draw_attributes.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/draw/intern/draw_attributes.h b/source/blender/draw/intern/draw_attributes.h index 4f82f3b94e9..b577c6c4162 100644 --- a/source/blender/draw/intern/draw_attributes.h +++ b/source/blender/draw/intern/draw_attributes.h @@ -46,8 +46,9 @@ void drw_attributes_merge(DRW_Attributes *dst, bool drw_attributes_overlap(const DRW_Attributes *a, const DRW_Attributes *b); DRW_AttributeRequest *drw_attributes_add_request(DRW_Attributes *attrs, - eCustomDataType type, - int layer, + const char *name, + eCustomDataType data_type, + int layer_index, eAttrDomain domain); bool drw_custom_data_match_attribute(const CustomData *custom_data, |