Split ray_face_intersection into quad/tri versions
[blender.git] / source / blender / editors / sculpt_paint / sculpt.c
index 21d3551687be4dc16bc99e4dbf2830cc77c22ffe..ee7169d887e7c89d23b1b563fa47dec4be7364f3 100644 (file)
@@ -4132,7 +4132,7 @@ static void sculpt_raycast_detail_cb(PBVHNode *node, void *data_v, float *tmin)
        if (BKE_pbvh_node_get_tmin(node) < *tmin) {
                SculptDetailRaycastData *srd = data_v;
                if (BKE_pbvh_bmesh_node_raycast_detail(node, srd->ray_start, srd->ray_normal,
-                                                      &srd->detail, &srd->dist))
+                                                      &srd->dist, &srd->detail))
                {
                        srd->hit = 1;
                        *tmin = srd->dist;