Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2014-10-13 19:47:36 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2014-10-13 19:48:10 +0400
commitfa021e3a44ecb80a9caa8ad46ecc0d794bd26b7c (patch)
tree9d10518104a9753cd1ea32e4bcde4cbbae50f71e /source/blender/editors/mask/mask_ops.c
parentcf38b933f3408b7f45d0e0e378d8aefb23bd4f6c (diff)
Code cleanup: Use new SQUARE() macro to get squared distance threshold
Diffstat (limited to 'source/blender/editors/mask/mask_ops.c')
-rw-r--r--source/blender/editors/mask/mask_ops.c2
1 files changed, 1 insertions, 1 deletions
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;