diff options
author | Bastien Montagne <bastien@blender.org> | 2020-06-04 19:03:49 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2020-06-04 19:06:47 +0300 |
commit | 1d72fc5a1a2d463b9ce2b118267fd446672a3c04 (patch) | |
tree | bc98bbedfeaa281d961460ca1cf24657b1d83f39 /source/blender/makesrna | |
parent | d71f9b988693ad6d2a13ddbc978daa6f25d07e3d (diff) |
LibOverride: Add Pointer properties to 'overridable by default'.
There is in fact no reason not to do so, RNA pointers are either to
other IDs (which is properly handled by default diffing code), or to
sub-structures that should almost always be diffed as well.
Exceptions (like backward ID pointers or strictly runtime caches and
data) are to be handled with proper 'no comparison' flag in any case.
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_define.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/makesrna/intern/rna_define.c b/source/blender/makesrna/intern/rna_define.c index f59a1790e7b..d6bedc61424 100644 --- a/source/blender/makesrna/intern/rna_define.c +++ b/source/blender/makesrna/intern/rna_define.c @@ -1425,10 +1425,8 @@ PropertyRNA *RNA_def_property(StructOrFunctionRNA *cont_, } #ifndef RNA_RUNTIME - if (type != PROP_POINTER) { - if (DefRNA.make_overridable) { - prop->flag_override |= PROPOVERRIDE_OVERRIDABLE_LIBRARY; - } + if (DefRNA.make_overridable) { + prop->flag_override |= PROPOVERRIDE_OVERRIDABLE_LIBRARY; } #endif |