Blender Git Loki

Git Commits -> Revision 6987060

Revision 6987060 by Jacques Lucke (master)
November 23, 2021, 08:32 (GMT)
Fix T93090: crash with data transfer modifier and geometry nodes

There was a missing normals layer that was requested by the data transfer
modifier from the target object. The normal layer was correctly added to
the target object. However, it never reached the data transfer modifier
because the mesh was copied in `BKE_object_get_evaluated_mesh`
(in the call to `get_mesh_for_write`) and the copy does not include the normals
layer.

The solution is to not use `get_mesh_for_write` here which was only used
because `BKE_object_get_evaluated_mesh` returns a non-const `Mesh *`.
Mid term, it should actually return a `const Mesh *` to avoid the confusion.

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

Commit Details:

Full Hash: 6987060f7082e77cfc4ead7db3e7c9d6aaf349b1
Parent Commit: f749506
Lines Changed: +5, -4

1 Modified Path:

/source/blender/blenkernel/intern/object.cc (+5, -4) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021