diff options
author | Hans Goudey <h.goudey@me.com> | 2022-05-31 18:31:32 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-05-31 18:31:32 +0300 |
commit | a40b6111283186b188864cd427ac2ec2970acfef (patch) | |
tree | 81196aa9eed9737f829175110afd91d08c379fae /source/blender/blenkernel/BKE_lib_id.h | |
parent | 908dfd5e0da52cdc912873e8b3c20ea3d33ff1ec (diff) |
Cleanup: Improve const correctness of ID functions
These functions don't change their inputs, so they can be const,
which is a bit more intuitive and clean to use for callers.
Differential Revision: https://developer.blender.org/D14943
Diffstat (limited to 'source/blender/blenkernel/BKE_lib_id.h')
-rw-r--r-- | source/blender/blenkernel/BKE_lib_id.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/BKE_lib_id.h b/source/blender/blenkernel/BKE_lib_id.h index 504ab47c1c5..beac608a138 100644 --- a/source/blender/blenkernel/BKE_lib_id.h +++ b/source/blender/blenkernel/BKE_lib_id.h @@ -603,7 +603,7 @@ bool BKE_id_can_be_asset(const struct ID *id); * we should either cache that status info also in virtual override IDs, or address the * long-standing TODO of getting an efficient 'owner_id' access for all embedded ID types. */ -bool BKE_id_is_editable(struct Main *bmain, struct ID *id); +bool BKE_id_is_editable(const struct Main *bmain, const struct ID *id); /** * Returns ordered list of data-blocks for display in the UI. |