diff options
author | Bastien Montagne <bastien@blender.org> | 2022-02-22 18:36:31 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2022-02-22 18:38:04 +0300 |
commit | 8073c95fe9d47bc42ba390f61da35062ffd6398a (patch) | |
tree | 3b043493d9c77890a5f308eb9555274f94981179 /source/blender/makesrna/RNA_access.h | |
parent | 51c7193405873a0d90596f3683686bbf1603fc1f (diff) |
Cleanup: Deduplicate logic in `RNA_property_editable` & co.
Fairly straight-forward, now all the logic for all those 'is editable'
complex checks is gathered into a single util function.
Diffstat (limited to 'source/blender/makesrna/RNA_access.h')
-rw-r--r-- | source/blender/makesrna/RNA_access.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/RNA_access.h b/source/blender/makesrna/RNA_access.h index eb25733a88a..bc4e7314512 100644 --- a/source/blender/makesrna/RNA_access.h +++ b/source/blender/makesrna/RNA_access.h @@ -997,7 +997,7 @@ bool RNA_property_editable_info(PointerRNA *ptr, PropertyRNA *prop, const char * /** * Same as RNA_property_editable(), except this checks individual items in an array. */ -bool RNA_property_editable_index(PointerRNA *ptr, PropertyRNA *prop, int index); +bool RNA_property_editable_index(PointerRNA *ptr, PropertyRNA *prop, const int index); /** * Without lib check, only checks the flag. |