Sculpt: Fix T99779, pbvh gets wrong active vertex for multires

The recent multires winding fix missed a code branch.
This commit is contained in:
Joseph Eagar 2022-07-25 11:52:07 -07:00
parent fb9f12eeec
commit 462f99bf38
Notes: blender-bot 2023-02-14 09:33:11 +01:00
Referenced by issue #99779, Regression: The dot in the middle of the sculpt cursor doesn't properly snap to the nearest vertex
1 changed files with 1 additions and 1 deletions

View File

@ -2424,7 +2424,7 @@ static bool pbvh_grids_node_raycast(PBVH *pbvh,
madd_v3_v3v3fl(location, ray_start, ray_normal, *depth);
const int x_it[4] = {0, 1, 1, 0};
const int y_it[4] = {0, 0, 1, 1};
const int y_it[4] = {1, 1, 0, 0};
for (int j = 0; j < 4; j++) {
/* Always assign nearest_vertex_co in the first iteration to avoid comparison against