Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/mesh/editmesh_polybuild.c
| Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | for (uint ob_index = 0; ob_index < objects_len; ob_index++) { | ||||
| if (bm_iter->totvertsel) { | if (bm_iter->totvertsel) { | ||||
| EDBM_flag_disable_all(em_iter, hflag); | EDBM_flag_disable_all(em_iter, hflag); | ||||
| DEG_id_tag_update(ob_iter->data, ID_RECALC_SELECT); | DEG_id_tag_update(ob_iter->data, ID_RECALC_SELECT); | ||||
| } | } | ||||
| } | } | ||||
| MEM_freeN(objects); | MEM_freeN(objects); | ||||
| } | } | ||||
| /* 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. */ | ||||
| static bool edbm_preselect_or_active(bContext *C, const View3D *v3d, Base **r_base, BMElem **r_ele) | static bool edbm_preselect_or_active(bContext *C, const View3D *v3d, Base **r_base, BMElem **r_ele) | ||||
| { | { | ||||
| ARegion *region = CTX_wm_region(C); | ARegion *region = CTX_wm_region(C); | ||||
| const bool show_gizmo = !(v3d->gizmo_flag & (V3D_GIZMO_HIDE | V3D_GIZMO_HIDE_TOOL)); | const bool show_gizmo = !(v3d->gizmo_flag & (V3D_GIZMO_HIDE | V3D_GIZMO_HIDE_TOOL)); | ||||
| wmGizmoMap *gzmap = show_gizmo ? region->gizmo_map : NULL; | wmGizmoMap *gzmap = show_gizmo ? region->gizmo_map : NULL; | ||||
| wmGizmoGroup *gzgroup = gzmap ? WM_gizmomap_group_find(gzmap, "VIEW3D_GGT_mesh_preselect_elem") : | wmGizmoGroup *gzgroup = gzmap ? WM_gizmomap_group_find(gzmap, "VIEW3D_GGT_mesh_preselect_elem") : | ||||
| NULL; | NULL; | ||||
| ▲ Show 20 Lines • Show All 541 Lines • Show Last 20 Lines | |||||