forked from bartvdbraak/blender
Code cleanup: Use new SQUARE() macro to get squared distance threshold
This commit is contained in:
parent
cf38b933f3
commit
fa021e3a44
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user