diff options
author | Hans Goudey <h.goudey@me.com> | 2022-09-15 21:14:31 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-09-15 21:14:31 +0300 |
commit | d5df23d7581230da7ab5cfd5764a46f7f7941759 (patch) | |
tree | 5e9ab952eeb90be36004b2a0abecc58f3536e4c2 /source/blender/blenkernel/intern | |
parent | 0945ae338b4e7752baaea445ac193c24ff2f4d57 (diff) |
Cleanup: Rename attribute required functions
Avoid "customdata" in the name, since that's an implementation detail
in this context.
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/attribute.cc | 10 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/curves.cc | 2 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/pointcloud.cc | 2 |
3 files changed, 6 insertions, 8 deletions
diff --git a/source/blender/blenkernel/intern/attribute.cc b/source/blender/blenkernel/intern/attribute.cc index f66a1f9ee93..bd3e452b7f2 100644 --- a/source/blender/blenkernel/intern/attribute.cc +++ b/source/blender/blenkernel/intern/attribute.cc @@ -452,12 +452,10 @@ int BKE_id_attribute_data_length(ID *id, CustomDataLayer *layer) bool BKE_id_attribute_required(const ID *id, const char *name) { switch (GS(id->name)) { - case ID_PT: { - return BKE_pointcloud_customdata_required((const PointCloud *)id, name); - } - case ID_CV: { - return BKE_curves_customdata_required((const Curves *)id, name); - } + case ID_PT: + return BKE_pointcloud_attribute_required((const PointCloud *)id, name); + case ID_CV: + return BKE_curves_attribute_required((const Curves *)id, name); default: return false; } diff --git a/source/blender/blenkernel/intern/curves.cc b/source/blender/blenkernel/intern/curves.cc index e729fed050b..d801484de62 100644 --- a/source/blender/blenkernel/intern/curves.cc +++ b/source/blender/blenkernel/intern/curves.cc @@ -263,7 +263,7 @@ BoundBox *BKE_curves_boundbox_get(Object *ob) return ob->runtime.bb; } -bool BKE_curves_customdata_required(const Curves *UNUSED(curves), const char *name) +bool BKE_curves_attribute_required(const Curves *UNUSED(curves), const char *name) { return STREQ(name, ATTR_POSITION); } diff --git a/source/blender/blenkernel/intern/pointcloud.cc b/source/blender/blenkernel/intern/pointcloud.cc index a17ca1447f6..5c935bf6daf 100644 --- a/source/blender/blenkernel/intern/pointcloud.cc +++ b/source/blender/blenkernel/intern/pointcloud.cc @@ -339,7 +339,7 @@ BoundBox *BKE_pointcloud_boundbox_get(Object *ob) return ob->runtime.bb; } -bool BKE_pointcloud_customdata_required(const PointCloud *UNUSED(pointcloud), const char *name) +bool BKE_pointcloud_attribute_required(const PointCloud *UNUSED(pointcloud), const char *name) { return STREQ(name, POINTCLOUD_ATTR_POSITION); } |