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.
This commit is contained in:
Bastien Montagne
2020-06-04 18:03:49 +02:00
parent d71f9b9886
commit 1d72fc5a1a

View File

@@ -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