Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_view3d/view3d_draw.c
| Show First 20 Lines • Show All 2,390 Lines • ▼ Show 20 Lines | |||||
| void ED_view3d_screen_datamask(const bContext *C, | void ED_view3d_screen_datamask(const bContext *C, | ||||
| const Scene *scene, | const Scene *scene, | ||||
| const bScreen *screen, | const bScreen *screen, | ||||
| CustomData_MeshMasks *r_cddata_masks) | CustomData_MeshMasks *r_cddata_masks) | ||||
| { | { | ||||
| CustomData_MeshMasks_update(r_cddata_masks, &CD_MASK_BAREMESH); | CustomData_MeshMasks_update(r_cddata_masks, &CD_MASK_BAREMESH); | ||||
| /* Check if we need tfaces & mcols due to view mode. */ | /* Check if we need tfaces & mcols due to view mode. */ | ||||
| for (const ScrArea *area = screen->areabase.first; area; area = area->next) { | LISTBASE_FOREACH (const ScrArea *, area, &screen->areabase) { | ||||
| if (area->spacetype == SPACE_VIEW3D) { | if (area->spacetype == SPACE_VIEW3D) { | ||||
| ED_view3d_datamask(C, scene, area->spacedata.first, r_cddata_masks); | ED_view3d_datamask(C, scene, area->spacedata.first, r_cddata_masks); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| /** | /** | ||||
| * Store values from #RegionView3D, set when drawing. | * Store values from #RegionView3D, set when drawing. | ||||
| ▲ Show 20 Lines • Show All 152 Lines • Show Last 20 Lines | |||||