diff options
author | Hans Goudey <h.goudey@me.com> | 2022-06-08 11:42:21 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-06-08 11:48:19 +0300 |
commit | 6eea5f70e3b79e3c6683b7bc0e3e2998b67955d6 (patch) | |
tree | 94cce89b472021d174349477303a3faeab9cb73d /source/blender/blenkernel/BKE_curves.h | |
parent | 1af652d42eb917e257d0f4f2773258f4f6ad2a45 (diff) |
Attributes: Use names instead of layers for some functions
This mirrors the C++ attribute API better, separates the implementation
of attributes from CustomData slightly, and makes functions simpler,
clearer, and safer.
Also fix an issue with removing an attribute caused by 97712b018df71c
meant the first attribute with the given type was removed instead of
the attribute with the given name.
Diffstat (limited to 'source/blender/blenkernel/BKE_curves.h')
-rw-r--r-- | source/blender/blenkernel/BKE_curves.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/BKE_curves.h b/source/blender/blenkernel/BKE_curves.h index f86df8b7434..c3302c6d2aa 100644 --- a/source/blender/blenkernel/BKE_curves.h +++ b/source/blender/blenkernel/BKE_curves.h @@ -25,7 +25,7 @@ void *BKE_curves_add(struct Main *bmain, const char *name); struct BoundBox *BKE_curves_boundbox_get(struct Object *ob); -bool BKE_curves_customdata_required(const struct Curves *curves, struct CustomDataLayer *layer); +bool BKE_curves_customdata_required(const struct Curves *curves, const char *name); /* Depsgraph */ |