diff options
author | Hans Goudey <h.goudey@me.com> | 2022-07-28 23:50:39 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-07-28 23:50:39 +0300 |
commit | cf61be619005493d6815be487ff557eaad3b3fa5 (patch) | |
tree | 3a6b775f314a6cc8b3a55c977affbb089a6175f6 /source/blender/blenkernel/BKE_idprop.hh | |
parent | 543ea415690ff21c43c20a511ce1727d9fc9e726 (diff) |
Cleanup: Use new IDProperty creation API for geometry ndoes modifier
Use the API from 36068487d076bfd8 instead
of the uglier `IDPropertyTemplate` API.
Diffstat (limited to 'source/blender/blenkernel/BKE_idprop.hh')
-rw-r--r-- | source/blender/blenkernel/BKE_idprop.hh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_idprop.hh b/source/blender/blenkernel/BKE_idprop.hh index 1e741cc252f..6a42ab1669f 100644 --- a/source/blender/blenkernel/BKE_idprop.hh +++ b/source/blender/blenkernel/BKE_idprop.hh @@ -45,6 +45,9 @@ std::unique_ptr<IDProperty, IDPropertyDeleter> create(StringRefNull prop_name, d std::unique_ptr<IDProperty, IDPropertyDeleter> create(StringRefNull prop_name, const StringRefNull value); +/** \brief Allocate a new IDProperty of type IDP_ID, set its name and value. */ +std::unique_ptr<IDProperty, IDPropertyDeleter> create(StringRefNull prop_name, ID *id); + /** * \brief Allocate a new IDProperty of type IDP_ARRAY and subtype IDP_INT. * |