[Bf-blender-cvs] [65b4ebbbd5c] master: Fix T60056: Make Duplicates Real with Keep Hierarchy does nothing

Philipp Oeser noreply at git.blender.org
Thu Jan 3 12:13:36 CET 2019


Commit: 65b4ebbbd5c497f732fab94bc4389533be22d4e3
Author: Philipp Oeser
Date:   Wed Jan 2 15:37:15 2019 +0100
Branches: master
https://developer.blender.org/rB65b4ebbbd5c497f732fab94bc4389533be22d4e3

Fix T60056: Make Duplicates Real with Keep Hierarchy does nothing

Caused by rB36ca072375deea4803df4681716c1d3224095e07
[one instance of `DEG_get_original_object` was neccesary, the other one
breaks getting the parent in `BLI_ghash_lookup`]

Reviewed by: brecht

Differential Revision: https://developer.blender.org/D4154

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

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 c481a62acb7..316d581870d 100644
--- a/source/blender/editors/object/object_add.c
+++ b/source/blender/editors/object/object_add.c
@@ -1609,7 +1609,7 @@ static void make_object_duplilist_real(bContext *C, Scene *scene, Base *base,
 	}
 
 	for (dob = lb_duplis->first; dob; dob = dob->next) {
-		Object *ob_src = DEG_get_original_object(dob->ob);
+		Object *ob_src = dob->ob;
 		Object *ob_dst = BLI_ghash_lookup(dupli_gh, dob);
 
 		/* Remap new object to itself, and clear again newid pointer of orig object. */



More information about the Bf-blender-cvs mailing list