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 <montagne29@wanadoo.fr>2018-04-17 19:03:41 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2018-04-17 19:07:08 +0300
commit75f82ac7223719b400c1a137cafe3027cd3a2536 (patch)
treea770e55f194573df092c9544a972be3159922329 /source/blender/makesdna/DNA_ID.h
parentfad7c065c213347685ee6c3d5884e55123ca8efb (diff)
Update/improve handling of 'overridable' status of properties.
Main new thing in this commit is ability for real IDProps (aka custom properties) to be set as overridable or not, they are not by default.
Diffstat (limited to 'source/blender/makesdna/DNA_ID.h')
-rw-r--r--source/blender/makesdna/DNA_ID.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_ID.h b/source/blender/makesdna/DNA_ID.h
index ba4b0970313..edab09351ee 100644
--- a/source/blender/makesdna/DNA_ID.h
+++ b/source/blender/makesdna/DNA_ID.h
@@ -109,6 +109,9 @@ enum {
/*->flag*/
enum {
+ /* This IDProp may be statically overridden. Should only be used/be relevant for custom properties. */
+ IDP_FLAG_OVERRIDABLE_STATIC = 1 << 0,
+
IDP_FLAG_GHOST = 1 << 7, /* this means the property is set but RNA will return false when checking
* 'RNA_property_is_set', currently this is a runtime flag */
};