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
Notes: blender-bot 2023-02-14 09:39:06 +01:00
Referenced by issue #43122, Shrinkwrap modifier confusion on linked meshes
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}