Fix T43122: Shrinkwrap target, wrong linked object
This commit is contained in:
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
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue