Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2018-03-20 20:08:42 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2018-03-20 20:12:45 +0300
commit8a94a82934d812ceb41fe31a8c059f6df1e17a57 (patch)
treecbb6b0727a597bee2175a18382aef15c6e4f9906 /source/blender/makesrna/intern/rna_rna.c
parente0388bc61a8825b68d584f799a2b03dec5f36d96 (diff)
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...
Diffstat (limited to 'source/blender/makesrna/intern/rna_rna.c')
-rw-r--r--source/blender/makesrna/intern/rna_rna.c2
1 files changed, 1 insertions, 1 deletions
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,