diff options
author | Jacques Lucke <jacques@blender.org> | 2021-11-23 11:32:12 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-11-23 11:32:12 +0300 |
commit | 6987060f7082e77cfc4ead7db3e7c9d6aaf349b1 (patch) | |
tree | 85190a83e5e7cfc77edc6396702e6569e78f597e /source/blender/editors/space_spreadsheet | |
parent | f749506163b7d2409c63c469f00e9bb1cbb2e68d (diff) |
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
Diffstat (limited to 'source/blender/editors/space_spreadsheet')
0 files changed, 0 insertions, 0 deletions