Fix T43122: Shrinkwrap target, wrong linked object

This commit is contained in:
Campbell Barton 2015-01-06 14:01:18 +11:00
parent 62f2b751f8
commit 2d2bfd416b

@ -2509,7 +2509,9 @@ DerivedMesh *object_get_derived_final(Object *ob, const bool for_render)
return ob->derivedFinal;
}
if (em) {
/* only return the editmesh if its from this object because
* we don't a mesh from another object's modifier stack: T43122 */
if (em && (em->ob == ob)) {
DerivedMesh *dm = em->derivedFinal;
return dm;
}