From fa021e3a44ecb80a9caa8ad46ecc0d794bd26b7c Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Mon, 13 Oct 2014 17:47:36 +0200 Subject: [PATCH] Code cleanup: Use new SQUARE() macro to get squared distance threshold --- source/blender/editors/mask/mask_ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/editors/mask/mask_ops.c b/source/blender/editors/mask/mask_ops.c index b27baaf22be..704be32d6f5 100644 --- a/source/blender/editors/mask/mask_ops.c +++ b/source/blender/editors/mask/mask_ops.c @@ -583,7 +583,7 @@ static bool spline_under_mouse_get(const bContext *C, /* TODO(sergey): Chech whether tessellated spline point is closer * to the mouse than the spline center. */ - if (closest_dist_squared < 32.0f * 32.0f && closest_spline != NULL) { + if (closest_dist_squared < SQUARE(32.0f) && closest_spline != NULL) { *mask_layer_r = closest_layer; *mask_spline_r = closest_spline; return true;