Bugfix, own testing
[blender.git] / source / blender / editors / sculpt_paint / sculpt.c
index 6429a70515b1ed513d8dc4dd2c14d7b6b1acf667..c0399fadb902aca412f162782f2e25456670fce1 100644 (file)
@@ -306,6 +306,7 @@ static void sculpt_brush_test_init(SculptSession *ss, SculptBrushTest *test)
 {
        test->radius_squared= ss->cache->radius_squared;
        copy_v3_v3(test->location, ss->cache->location);
+       test->dist= 0.0f;       /* just for initialize */
 }
 
 static int sculpt_brush_test(SculptBrushTest *test, float co[3])