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
This commit is contained in:
Philipp Oeser 2019-01-02 15:37:15 +01:00
parent 310e7eee6f
commit 65b4ebbbd5
Notes: blender-bot 2023-02-14 08:38:11 +01:00
Referenced by issue #60056, Blender 2.8 Make Duplicates Real with Keep Hierarchy do nothing
1 changed files with 1 additions and 1 deletions

View File

@ -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. */