[Bf-blender-cvs] [dc0376555fa] master: LibOverride: do not allow diffing on collections' `all_objects` member.

Bastien Montagne noreply at git.blender.org
Fri Aug 16 16:25:59 CEST 2019


Commit: dc0376555fa948746c97a68cdf39ef4487505710
Author: Bastien Montagne
Date:   Fri Aug 16 15:34:04 2019 +0200
Branches: master
https://developer.blender.org/rBdc0376555fa948746c97a68cdf39ef4487505710

LibOverride: do not allow diffing on collections' `all_objects` member.

This is useless (as diffing on `objects` + `children` shall be enough),
and potentially very time consuming in case of heavy hierarchy of
collections.

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

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

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

diff --git a/source/blender/makesrna/intern/rna_collection.c b/source/blender/makesrna/intern/rna_collection.c
index 5a37c4c0e6f..691803e0de1 100644
--- a/source/blender/makesrna/intern/rna_collection.c
+++ b/source/blender/makesrna/intern/rna_collection.c
@@ -403,6 +403,7 @@ void RNA_def_collections(BlenderRNA *brna)
   RNA_def_property_struct_type(prop, "Object");
   RNA_def_property_ui_text(
       prop, "All Objects", "Objects that are in this collection and its child collections");
+  RNA_def_property_override_flag(prop, PROPOVERRIDE_NO_COMPARISON);
   RNA_def_property_collection_funcs(prop,
                                     "rna_Collection_all_objects_begin",
                                     "rna_iterator_listbase_next",



More information about the Bf-blender-cvs mailing list