Fix depth PBVH raycast with grids

This commit is contained in:
Pablo Dobarro 2021-02-11 18:48:14 +01:00
parent 0b9aaaf97f
commit 51c931ebb5
1 changed files with 1 additions and 1 deletions

View File

@ -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],