diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-10-02 17:28:07 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-10-03 17:09:30 +0400 |
commit | 2041174ef964fff6f0a6c7fdec7f91f96cc6646f (patch) | |
tree | bc63f713bb68187290ebbe8b47d090b6a091cedf /source/blender | |
parent | 1cdffa725e518fc6ef01e40bd3aa5c184d5554b5 (diff) |
Fix T42030: Grabbing the whole mask interfere with grabbing individual curve
This fix is for the final 2.72 release.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/mask/mask_ops.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/editors/mask/mask_ops.c b/source/blender/editors/mask/mask_ops.c index 16e17336c1d..c3959f90318 100644 --- a/source/blender/editors/mask/mask_ops.c +++ b/source/blender/editors/mask/mask_ops.c @@ -580,7 +580,10 @@ static bool spline_under_mouse_get(const bContext *C, } } } - if (closest_spline != NULL) { + /* TODO(sergey): Chech whether tesellated spline point is closer + * to the mouse than the spline center. + */ + if (closest_dist_squared < 32.0f * 32.0f && closest_spline != NULL) { *mask_layer_r = closest_layer; *mask_spline_r = closest_spline; return true; |