Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/mesh/editmesh_loopcut.c
| Show First 20 Lines • Show All 220 Lines • ▼ Show 20 Lines | if (lcd->do_cut) { | ||||
| } | } | ||||
| else { | else { | ||||
| /* else flush explicitly */ | /* else flush explicitly */ | ||||
| EDBM_selectmode_flush(lcd->em); | EDBM_selectmode_flush(lcd->em); | ||||
| } | } | ||||
| } | } | ||||
| else { | else { | ||||
| /* XXX Is this piece of code ever used now? Simple loop select is now | /* XXX Is this piece of code ever used now? Simple loop select is now | ||||
| * in editmesh_select.c (around line 1000)... */ | * in editmesh_select.cc (around line 1000)... */ | ||||
| /* sets as active, useful for other tools */ | /* sets as active, useful for other tools */ | ||||
| if (em->selectmode & SCE_SELECT_VERTEX) { | if (em->selectmode & SCE_SELECT_VERTEX) { | ||||
| /* low priority TODO: get vertrex close to mouse. */ | /* low priority TODO: get vertrex close to mouse. */ | ||||
| BM_select_history_store(em->bm, lcd->eed->v1); | BM_select_history_store(em->bm, lcd->eed->v1); | ||||
| } | } | ||||
| if (em->selectmode & SCE_SELECT_EDGE) { | if (em->selectmode & SCE_SELECT_EDGE) { | ||||
| BM_select_history_store(em->bm, lcd->eed); | BM_select_history_store(em->bm, lcd->eed); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 230 Lines • ▼ Show 20 Lines | #endif | ||||
| ringsel_finish(C, op); | ringsel_finish(C, op); | ||||
| ringsel_exit(C, op); | ringsel_exit(C, op); | ||||
| return OPERATOR_FINISHED; | return OPERATOR_FINISHED; | ||||
| } | } | ||||
| static int ringcut_invoke(bContext *C, wmOperator *op, const wmEvent *event) | static int ringcut_invoke(bContext *C, wmOperator *op, const wmEvent *event) | ||||
| { | { | ||||
| /* When accessed as a tool, get the active edge from the preselection gizmo. */ | /* When accessed as a tool, get the active edge from the pre-selection gizmo. */ | ||||
| { | { | ||||
| ARegion *region = CTX_wm_region(C); | ARegion *region = CTX_wm_region(C); | ||||
| wmGizmoMap *gzmap = region->gizmo_map; | wmGizmoMap *gzmap = region->gizmo_map; | ||||
| wmGizmoGroup *gzgroup = gzmap ? WM_gizmomap_group_find(gzmap, | wmGizmoGroup *gzgroup = gzmap ? WM_gizmomap_group_find(gzmap, | ||||
| "VIEW3D_GGT_mesh_preselect_edgering") : | "VIEW3D_GGT_mesh_preselect_edgering") : | ||||
| NULL; | NULL; | ||||
| if ((gzgroup != NULL) && gzgroup->gizmos.first) { | if ((gzgroup != NULL) && gzgroup->gizmos.first) { | ||||
| wmGizmo *gz = gzgroup->gizmos.first; | wmGizmo *gz = gzgroup->gizmos.first; | ||||
| ▲ Show 20 Lines • Show All 290 Lines • Show Last 20 Lines | |||||