[Bf-blender-cvs] [e8cd2269b40] blender-v2.81-release: Fix T71199: Child-parent relationships arent kept after you make instances real.
Bastien Montagne
noreply at git.blender.org
Fri Nov 8 14:30:06 CET 2019
Commit: e8cd2269b40ddd21a10fd1f745ebc131c74ca9a8
Author: Bastien Montagne
Date: Fri Nov 8 14:27:48 2019 +0100
Branches: blender-v2.81-release
https://developer.blender.org/rBe8cd2269b40ddd21a10fd1f745ebc131c74ca9a8
Fix T71199: Child-parent relationships arent kept after you make instances real.
Comparison function of the of the parent ghash was not fully correct,
could lead to some false positives in some cases...
===================================================================
M source/blender/editors/object/object_add.c
===================================================================
diff --git a/source/blender/editors/object/object_add.c b/source/blender/editors/object/object_add.c
index bdb23c5ce6f..b15a245c0f2 100644
--- a/source/blender/editors/object/object_add.c
+++ b/source/blender/editors/object/object_add.c
@@ -1714,7 +1714,11 @@ static bool dupliobject_cmp(const void *a_, const void *b_)
return true;
}
- if (ELEM(a->type, b->type, OB_DUPLICOLLECTION)) {
+ if (a->type != b->type) {
+ return true;
+ }
+
+ if (a->type == OB_DUPLICOLLECTION) {
for (int i = 1; (i < MAX_DUPLI_RECUR); i++) {
if (a->persistent_id[i] != b->persistent_id[i]) {
return true;
More information about the Bf-blender-cvs
mailing list