Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_view3d/view3d_select.c
| Show First 20 Lines • Show All 3,199 Lines • ▼ Show 20 Lines | |||||
| static bool lattice_circle_select(ViewContext *vc, const eSelectOp sel_op, const int mval[2], float rad) | static bool lattice_circle_select(ViewContext *vc, const eSelectOp sel_op, const int mval[2], float rad) | ||||
| { | { | ||||
| CircleSelectUserData data; | CircleSelectUserData data; | ||||
| const bool select = (sel_op != SEL_OP_SUB); | const bool select = (sel_op != SEL_OP_SUB); | ||||
| view3d_userdata_circleselect_init(&data, vc, select, mval, rad); | view3d_userdata_circleselect_init(&data, vc, select, mval, rad); | ||||
| if (SEL_OP_USE_PRE_DESELECT(sel_op)) { | if (SEL_OP_USE_PRE_DESELECT(sel_op)) { | ||||
| Curve *curve = vc->obedit->data; | data.is_changed |= ED_lattice_flags_set(vc->obedit, 0); | ||||
| data.is_changed |= ED_curve_deselect_all(curve->editnurb); | |||||
| } | } | ||||
| ED_view3d_init_mats_rv3d(vc->obedit, vc->rv3d); /* for foreach's screen/vert projection */ | ED_view3d_init_mats_rv3d(vc->obedit, vc->rv3d); /* for foreach's screen/vert projection */ | ||||
| lattice_foreachScreenVert(vc, latticecurve_circle_doSelect, &data, V3D_PROJ_TEST_CLIP_DEFAULT); | lattice_foreachScreenVert(vc, latticecurve_circle_doSelect, &data, V3D_PROJ_TEST_CLIP_DEFAULT); | ||||
| return data.is_changed; | return data.is_changed; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 364 Lines • Show Last 20 Lines | |||||