KDTree: deprecate 'normal' argument
[blender.git] / source / blender / editors / object / object_relations.c
index f1a04f819792a8d0819c045ed08b6798e6fee86b..5fd6fcfaa4714f30e62cbe425f7f737a0c68fbb0 100644 (file)
@@ -785,7 +785,7 @@ static void parent_set_vert_find(KDTree *tree, Object *child, int vert_par[3], b
                KDTreeNearest nearest[3];
                int tot;
 
-               tot = BLI_kdtree_find_nearest_n(tree, co_find, NULL, nearest, 3);
+               tot = BLI_kdtree_find_nearest_n(tree, co_find, nearest, 3);
                BLI_assert(tot == 3);
 
                vert_par[0] = nearest[0].index;
@@ -795,7 +795,7 @@ static void parent_set_vert_find(KDTree *tree, Object *child, int vert_par[3], b
                BLI_assert(min_iii(UNPACK3(vert_par)) >= 0);
        }
        else {
-               vert_par[0] = BLI_kdtree_find_nearest(tree, co_find, NULL, NULL);
+               vert_par[0] = BLI_kdtree_find_nearest(tree, co_find, NULL);
                BLI_assert(vert_par[0] >= 0);
                vert_par[1] = 0;
                vert_par[2] = 0;