[Bf-blender-cvs] [51c931ebb59] sculpt-dev: Fix depth PBVH raycast with grids
Pablo Dobarro
noreply at git.blender.org
Thu Feb 11 18:48:42 CET 2021
Commit: 51c931ebb59018801e10b6d2ccb91f317148ccc4
Author: Pablo Dobarro
Date: Thu Feb 11 18:48:14 2021 +0100
Branches: sculpt-dev
https://developer.blender.org/rB51c931ebb59018801e10b6d2ccb91f317148ccc4
Fix depth PBVH raycast with grids
===================================================================
M source/blender/blenkernel/intern/pbvh.c
===================================================================
diff --git a/source/blender/blenkernel/intern/pbvh.c b/source/blender/blenkernel/intern/pbvh.c
index c04e0008ed5..60b7f1f81b9 100644
--- a/source/blender/blenkernel/intern/pbvh.c
+++ b/source/blender/blenkernel/intern/pbvh.c
@@ -2311,7 +2311,7 @@ static bool pbvh_grids_node_raycast(PBVH *pbvh,
co[3] = CCG_grid_elem_co(gridkey, grid, x, y + 1);
}
- if (ray_face_intersection_depth_quad(ray_start,
+ if (!ray_face_intersection_depth_quad(ray_start,
isect_precalc,
co[0],
co[1],
More information about the Bf-blender-cvs
mailing list