[Bf-blender-cvs] [8a94a82934d] blender2.8: Fix broken tatic verride detection in RNA collections.
Bastien Montagne
noreply at git.blender.org
Tue Mar 20 18:12:56 CET 2018
Commit: 8a94a82934d812ceb41fe31a8c059f6df1e17a57
Author: Bastien Montagne
Date: Tue Mar 20 18:08:42 2018 +0100
Branches: blender2.8
https://developer.blender.org/rB8a94a82934d812ceb41fe31a8c059f6df1e17a57
Fix broken tatic verride detection in RNA collections.
We have to check all items of a collection when we want to create
overrides as needed...
===================================================================
M source/blender/makesrna/intern/rna_rna.c
===================================================================
diff --git a/source/blender/makesrna/intern/rna_rna.c b/source/blender/makesrna/intern/rna_rna.c
index 9c043c3563a..0452c644052 100644
--- a/source/blender/makesrna/intern/rna_rna.c
+++ b/source/blender/makesrna/intern/rna_rna.c
@@ -1476,7 +1476,7 @@ int rna_property_override_diff_default(PointerRNA *ptr_a, PointerRNA *ptr_b,
}
}
- if (equals) {
+ if (equals || do_create) {
const bool no_ownership = (RNA_property_flag(prop_a) & PROP_PTR_NO_OWNERSHIP) != 0;
const int eq = rna_property_override_diff_propptr(
&iter_a.ptr, &iter_b.ptr, mode, no_ownership,
More information about the Bf-blender-cvs
mailing list