Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/metaball/mball_edit.c
| Show First 20 Lines • Show All 588 Lines • ▼ Show 20 Lines | bool ED_mball_select_pick(bContext *C, const int mval[2], bool extend, bool deselect, bool toggle) | ||||
| int a, hits; | int a, hits; | ||||
| unsigned int buffer[MAXPICKBUF]; | unsigned int buffer[MAXPICKBUF]; | ||||
| rcti rect; | rcti rect; | ||||
| view3d_set_viewcontext(C, &vc); | view3d_set_viewcontext(C, &vc); | ||||
| BLI_rcti_init_pt_size(&rect, mval, 12); | BLI_rcti_init_pt_size(&rect, mval, 12); | ||||
| hits = view3d_opengl_select(&vc, buffer, MAXPICKBUF, &rect, true); | hits = view3d_opengl_select(&vc, buffer, MAXPICKBUF, &rect, VIEW3D_SELECT_DEPTH_SORT_NEAREST); | ||||
| /* does startelem exist? */ | /* does startelem exist? */ | ||||
| ml = mb->editelems->first; | ml = mb->editelems->first; | ||||
| while (ml) { | while (ml) { | ||||
| if (ml == startelem) break; | if (ml == startelem) break; | ||||
| ml = ml->next; | ml = ml->next; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 148 Lines • Show Last 20 Lines | |||||