Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/overlay/overlay_edit_mesh.c
| Context not available. | |||||
| const DRWContextState *draw_ctx = DRW_context_state_get(); | const DRWContextState *draw_ctx = DRW_context_state_get(); | ||||
| ToolSettings *tsettings = draw_ctx->scene->toolsettings; | ToolSettings *tsettings = draw_ctx->scene->toolsettings; | ||||
| View3D *v3d = draw_ctx->v3d; | View3D *v3d = draw_ctx->v3d; | ||||
| bool select_vert = pd->edit_mesh.select_vert = (tsettings->selectmode & SCE_SELECT_VERTEX) != 0; | bool select_vert = pd->edit_mesh.select_vert = (tsettings->selectmode & SCE_SELECT_VERTEX) != 0; | ||||
| bool select_face = pd->edit_mesh.select_face = (tsettings->selectmode & SCE_SELECT_FACE) != 0; | bool select_face = pd->edit_mesh.select_face = (tsettings->selectmode & SCE_SELECT_FACE) != 0; | ||||
| bool select_edge = pd->edit_mesh.select_edge = (tsettings->selectmode & SCE_SELECT_EDGE) != 0; | bool select_edge = pd->edit_mesh.select_edge = (tsettings->selectmode & SCE_SELECT_EDGE) != 0; | ||||
| bool do_occlude_wire = (v3d->overlay.edit_flag & V3D_OVERLAY_EDIT_OCCLUDE_WIRE) != 0; | bool do_occlude_wire = (v3d->overlay.edit_flag & V3D_OVERLAY_EDIT_OCCLUDE_WIRE) != 0; | ||||
| bool show_face_dots = (v3d->overlay.edit_flag & V3D_OVERLAY_EDIT_FACE_DOT) != 0 || | bool show_face_dots = !XRAY_FLAG_ENABLED(draw_ctx->v3d) && | ||||
| pd->edit_mesh.do_zbufclip; | v3d->overlay.edit_flag & V3D_OVERLAY_EDIT_FACE_DOT || | ||||
| XRAY_FLAG_ENABLED(draw_ctx->v3d) && | |||||
| v3d->overlay.edit_flag & V3D_OVERLAY_EDIT_FACE_DOT_XRAY; | |||||
| pd->edit_mesh.do_faces = true; | pd->edit_mesh.do_faces = true; | ||||
| pd->edit_mesh.do_edges = true; | pd->edit_mesh.do_edges = true; | ||||
| Context not available. | |||||