Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/intern/wm_draw.c
| Show First 20 Lines • Show All 888 Lines • ▼ Show 20 Lines | LISTBASE_FOREACH (ARegion *, region, &area->regionbase) { | ||||
| CTX_wm_region_set(C, NULL); | CTX_wm_region_set(C, NULL); | ||||
| } | } | ||||
| } | } | ||||
| ED_area_update_region_sizes(wm, win, area); | ED_area_update_region_sizes(wm, win, area); | ||||
| if (area->flag & AREA_FLAG_ACTIVE_TOOL_UPDATE) { | if (area->flag & AREA_FLAG_ACTIVE_TOOL_UPDATE) { | ||||
| if ((1 << area->spacetype) & WM_TOOLSYSTEM_SPACE_MASK) { | if ((1 << area->spacetype) & WM_TOOLSYSTEM_SPACE_MASK) { | ||||
| WM_toolsystem_update_from_context(C, CTX_wm_workspace(C), CTX_data_view_layer(C), area); | WM_toolsystem_update_from_context( | ||||
| C, CTX_wm_workspace(C), CTX_data_scene(C), CTX_data_view_layer(C), area); | |||||
| } | } | ||||
| area->flag &= ~AREA_FLAG_ACTIVE_TOOL_UPDATE; | area->flag &= ~AREA_FLAG_ACTIVE_TOOL_UPDATE; | ||||
| } | } | ||||
| /* Then do actual drawing of regions. */ | /* Then do actual drawing of regions. */ | ||||
| LISTBASE_FOREACH (ARegion *, region, &area->regionbase) { | LISTBASE_FOREACH (ARegion *, region, &area->regionbase) { | ||||
| if (!region->visible || !region->do_draw) { | if (!region->visible || !region->do_draw) { | ||||
| continue; | continue; | ||||
| ▲ Show 20 Lines • Show All 548 Lines • Show Last 20 Lines | |||||