Skip to content

Commit

Permalink
Fix #106802: Incorrect modifier deform evaluation result
Browse files Browse the repository at this point in the history
Since the positions of the final mesh are modified rather than a
separate array after d20f992, the final mesh has
to become the deformed mesh after the deform modifiers, rather
than the input mesh. The arrays can't be shared anymore, but that
performance loss will be solved by implicit sharing shortly.
  • Loading branch information
HansGoudey committed Apr 11, 2023
1 parent 1a6cfa1 commit 99c630c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/blender/blenkernel/intern/DerivedMesh.cc
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ static void mesh_calc_modifiers(struct Depsgraph *depsgraph,
* places that wish to use the original mesh but with deformed
* coordinates (like vertex paint). */
if (r_deform) {
mesh_deform = BKE_mesh_copy_for_eval(mesh_input, true);
mesh_deform = BKE_mesh_copy_for_eval(mesh_final, false);
}
}

Expand Down

0 comments on commit 99c630c

Please sign in to comment.