Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2021-11-23 11:32:12 +0300
committerJacques Lucke <jacques@blender.org>2021-11-23 11:32:12 +0300
commit6987060f7082e77cfc4ead7db3e7c9d6aaf349b1 (patch)
tree85190a83e5e7cfc77edc6396702e6569e78f597e /tests/blender_as_python_module/import_bpy.py
parentf749506163b7d2409c63c469f00e9bb1cbb2e68d (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 'tests/blender_as_python_module/import_bpy.py')
0 files changed, 0 insertions, 0 deletions