diff options
author | Bastien Montagne <mont29> | 2020-06-03 11:37:46 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2020-06-03 12:18:11 +0300 |
commit | 3384bb2c663fda4e8b2f63f37ffce7152436f0a5 (patch) | |
tree | a14d87f20d123e5fe1f079b949ece025cc05f6b9 /source/blender/makesrna/intern/rna_internal.h | |
parent | 0e14eb7b31a8f55bd754c020dd542a6ac007caa3 (diff) |
RNA: add option to enable by default lib overridale flag of defined properties.
Similar to the one allowing to deactivate DNA check, etc.
Will helps reduce verbosity when making many new properties overridable.
Note that pointer properties always remain non-overridable by default,
since basically only ID pointers should be.
Reviewed By: brecht
Maniphest Tasks: T77083
Differential Revision: https://developer.blender.org/D7906
Diffstat (limited to 'source/blender/makesrna/intern/rna_internal.h')
-rw-r--r-- | source/blender/makesrna/intern/rna_internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_internal.h b/source/blender/makesrna/intern/rna_internal.h index f7d453cdc32..44f118a8744 100644 --- a/source/blender/makesrna/intern/rna_internal.h +++ b/source/blender/makesrna/intern/rna_internal.h @@ -123,6 +123,8 @@ typedef struct BlenderDefRNA { bool preprocess; bool verify; bool animate; + /** Whether RNA properties defined should be overridable or not by default. */ + bool make_overridable; /* Keep last. */ #ifndef RNA_RUNTIME |