[Bf-blender-cvs] [462f99bf386] master: Sculpt: Fix T99779, pbvh gets wrong active vertex for multires

Joseph Eagar noreply at git.blender.org
Mon Jul 25 20:53:53 CEST 2022


Commit: 462f99bf38648a08226b1fba423315aec2bc577b
Author: Joseph Eagar
Date:   Mon Jul 25 11:52:07 2022 -0700
Branches: master
https://developer.blender.org/rB462f99bf38648a08226b1fba423315aec2bc577b

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

The recent multires winding fix missed a code branch.

===================================================================

M	source/blender/blenkernel/intern/pbvh.c

===================================================================

diff --git a/source/blender/blenkernel/intern/pbvh.c b/source/blender/blenkernel/intern/pbvh.c
index 00a4eee47e3..6cebcdfea4e 100644
--- a/source/blender/blenkernel/intern/pbvh.c
+++ b/source/blender/blenkernel/intern/pbvh.c
@@ -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



More information about the Bf-blender-cvs mailing list