Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/mesh/editface.c
| Show First 20 Lines • Show All 455 Lines • ▼ Show 20 Lines | if (SEL_OP_USE_PRE_DESELECT(sel_op)) { | ||||
| changed |= paintface_deselect_all_visible(vc->C, vc->obact, SEL_DESELECT, false); | changed |= paintface_deselect_all_visible(vc->C, vc->obact, SEL_DESELECT, false); | ||||
| } | } | ||||
| if (BLI_rcti_is_empty(rect)) { | if (BLI_rcti_is_empty(rect)) { | ||||
| /* pass */ | /* pass */ | ||||
| } | } | ||||
| else { | else { | ||||
| MPoly *mpoly; | MPoly *mpoly; | ||||
| uint *rt; | uint *rt, *buf, buf_len; | ||||
| int a, index; | int a, index; | ||||
| char *selar = MEM_callocN(me->totpoly + 1, "selar"); | char *selar = MEM_callocN(me->totpoly + 1, "selar"); | ||||
| uint buf_len; | ED_view3d_select_id_validate(vc); | ||||
| uint *buf = ED_view3d_select_id_read_rect(vc, rect, &buf_len); | buf = ED_view3d_select_id_read_rect(vc, rect, &buf_len); | ||||
| rt = buf; | rt = buf; | ||||
| a = buf_len; | a = buf_len; | ||||
| while (a--) { | while (a--) { | ||||
| if (*rt) { | if (*rt) { | ||||
| index = *rt; | index = *rt; | ||||
| if (index <= me->totpoly) { | if (index <= me->totpoly) { | ||||
| ▲ Show 20 Lines • Show All 192 Lines • Show Last 20 Lines | |||||