[Bf-blender-cvs] [1d72fc5a1a2] master: LibOverride: Add Pointer properties to 'overridable by default'.

Bastien Montagne noreply at git.blender.org
Thu Jun 4 18:06:56 CEST 2020


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



More information about the Bf-blender-cvs mailing list