Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <bastien@blender.org>2022-02-22 18:36:31 +0300
committerBastien Montagne <bastien@blender.org>2022-02-22 18:38:04 +0300
commit8073c95fe9d47bc42ba390f61da35062ffd6398a (patch)
tree3b043493d9c77890a5f308eb9555274f94981179 /source/blender/makesrna/RNA_access.h
parent51c7193405873a0d90596f3683686bbf1603fc1f (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.h2
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.