KDTree: deprecate 'normal' argument
[blender.git] / source / blender / blenkernel / intern / dynamicpaint.c
index b56522034c5368a353b9a5d126c22b791af9b4c2..24ccc66387811f2c9c7ff1ee3afa4303744342c4 100644 (file)
@@ -3716,7 +3716,7 @@ static int dynamicPaint_paintParticles(DynamicPaintSurface *surface,
                /* make sure particle is close enough to canvas */
                if (!boundIntersectPoint(&grid->grid_bounds, pa->state.co, range)) continue;
 
-               BLI_kdtree_insert(tree, p, pa->state.co, NULL);
+               BLI_kdtree_insert(tree, p, pa->state.co);
 
                /* calc particle system bounds */
                boundInsert(&part_bb, pa->state.co);
@@ -3773,7 +3773,7 @@ static int dynamicPaint_paintParticles(DynamicPaintSurface *surface,
                                        float smooth_range, part_solidradius;
 
                                        /* Find nearest particle and get distance to it */
-                                       BLI_kdtree_find_nearest(tree, bData->realCoord[bData->s_pos[index]].v, NULL, &nearest);
+                                       BLI_kdtree_find_nearest(tree, bData->realCoord[bData->s_pos[index]].v, &nearest);
                                        /* if outside maximum range, no other particle can influence either */
                                        if (nearest.dist > range) continue;
 
@@ -3813,7 +3813,7 @@ static int dynamicPaint_paintParticles(DynamicPaintSurface *surface,
                                        /* Make gcc happy! */
                                        dist = max_range;
 
-                                       particles = BLI_kdtree_range_search(tree, bData->realCoord[bData->s_pos[index]].v, NULL,
+                                       particles = BLI_kdtree_range_search(tree, bData->realCoord[bData->s_pos[index]].v,
                                                                            &nearest, max_range);
 
                                        /* Find particle that produces highest influence */