[Bf-blender-cvs] [96c2d67] master: Fix T42030: Grabbing the whole mask interfere with grabbing individual curve
Sergey Sharybin
noreply at git.blender.org
Thu Oct 2 15:29:27 CEST 2014
Commit: 96c2d677975d81b00e6011ef15e9a8f981a16e9a
Author: Sergey Sharybin
Date: Thu Oct 2 19:28:07 2014 +0600
Branches: master
https://developer.blender.org/rB96c2d677975d81b00e6011ef15e9a8f981a16e9a
Fix T42030: Grabbing the whole mask interfere with grabbing individual curve
This fix is for the final 2.72 release.
===================================================================
M source/blender/editors/mask/mask_ops.c
===================================================================
diff --git a/source/blender/editors/mask/mask_ops.c b/source/blender/editors/mask/mask_ops.c
index 16e1733..c3959f9 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;
More information about the Bf-blender-cvs
mailing list