[Bf-blender-cvs] [006a628] : Fix T39123: Border select without "extend" does nor clear selection of bezier nodes in 3D view
Sergey Sharybin
noreply at git.blender.org
Wed Mar 12 18:22:12 CET 2014
Commit: 006a6280109ebb56a8b258376623bace47348a29
Author: Sergey Sharybin
Date: Wed Mar 12 14:07:26 2014 +0600
https://developer.blender.org/rB006a6280109ebb56a8b258376623bace47348a29
Fix T39123: Border select without "extend" does nor clear selection of bezier nodes in 3D view
This is a regression introduced in fbc7ab30f and caused by the wrong object
being passed to the function.
Not sure passing editnurb as an argument is a good thing to do..
===================================================================
M source/blender/editors/space_view3d/view3d_select.c
===================================================================
diff --git a/source/blender/editors/space_view3d/view3d_select.c b/source/blender/editors/space_view3d/view3d_select.c
index 47f30e3..1c35588 100644
--- a/source/blender/editors/space_view3d/view3d_select.c
+++ b/source/blender/editors/space_view3d/view3d_select.c
@@ -568,8 +568,10 @@ static void do_lasso_select_curve(ViewContext *vc, const int mcords[][2], short
view3d_userdata_lassoselect_init(&data, vc, &rect, mcords, moves, select);
- if (extend == false && select)
- ED_curve_deselect_all(vc->obedit->data);
+ if (extend == false && select) {
+ Curve *curve = (Curve *) vc->obedit->data;
+ ED_curve_deselect_all(curve->editnurb);
+ }
ED_view3d_init_mats_rv3d(vc->obedit, vc->rv3d); /* for foreach's screen/vert projection */
nurbs_foreachScreenVert(vc, do_lasso_select_curve__doSelect, &data, V3D_PROJ_TEST_CLIP_DEFAULT);
@@ -1735,8 +1737,10 @@ static int do_nurbs_box_select(ViewContext *vc, rcti *rect, bool select, bool ex
view3d_userdata_boxselect_init(&data, vc, rect, select);
- if (extend == false && select)
- ED_curve_deselect_all(vc->obedit->data);
+ if (extend == false && select) {
+ Curve *curve = (Curve *) vc->obedit->data;
+ ED_curve_deselect_all(curve->editnurb);
+ }
ED_view3d_init_mats_rv3d(vc->obedit, vc->rv3d); /* for foreach's screen/vert projection */
nurbs_foreachScreenVert(vc, do_nurbs_box_select__doSelect, &data, V3D_PROJ_TEST_CLIP_DEFAULT);
More information about the Bf-blender-cvs
mailing list