diff options
Diffstat (limited to 'source/blender/makesrna/RNA_types.h')
-rw-r--r-- | source/blender/makesrna/RNA_types.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/blender/makesrna/RNA_types.h b/source/blender/makesrna/RNA_types.h index 2a5d3890150..ee7c045ebf9 100644 --- a/source/blender/makesrna/RNA_types.h +++ b/source/blender/makesrna/RNA_types.h @@ -299,6 +299,18 @@ typedef enum PropertyOverrideFlag { */ PROPOVERRIDE_NO_COMPARISON = (1 << 1), + /** + * Means the property can be fully ignored by override process. + * Unlike NO_COMPARISON, it can still be used by diffing code, but no override operation will be + * created for it, and no attempt to restore the data from linked reference either. + * + * WARNING: This flag should be used with a lot of caution, as it completely by-passes override + * system. It is currently only used for ID's names, since we cannot prevent local override to + * get a different name from the linked reference, and ID names are 'rna name property' (i.e. are + * used in overrides of collections of IDs). See also `BKE_lib_override_library_update()` where + * we deal manually with the value of that property at DNA level. */ + PROPOVERRIDE_IGNORE = (1 << 2), + /*** Collections-related ***/ /** The property supports insertion (collections only). */ |