Commit: 1d72fc5a1a2d463b9ce2b118267fd446672a3c04
Author: Bastien Montagne
Date:   Thu Jun 4 18:03:49 2020 +0200
Branches: master
https://developer.blender.org/rB1d72fc5a1a2d463b9ce2b118267fd446672a3c04

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.

===================================================================

M       source/blender/makesrna/intern/rna_define.c

===================================================================

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

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to