Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/intern/wm_toolsystem.c
| Show First 20 Lines • Show All 561 Lines • ▼ Show 20 Lines | void WM_toolsystem_refresh_screen_area(WorkSpace *workspace, ViewLayer *view_layer, ScrArea *area) | ||||
| LISTBASE_FOREACH (bToolRef *, tref, &workspace->tools) { | LISTBASE_FOREACH (bToolRef *, tref, &workspace->tools) { | ||||
| if (tref->space_type == area->spacetype) { | if (tref->space_type == area->spacetype) { | ||||
| if (tref->mode == mode) { | if (tref->mode == mode) { | ||||
| area->runtime.tool = tref; | area->runtime.tool = tref; | ||||
| break; | break; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| area->flag |= AREA_FLAG_ACTIVE_TOOL_UPDATE; | |||||
| } | } | ||||
| void WM_toolsystem_refresh_screen_all(Main *bmain) | void WM_toolsystem_refresh_screen_all(Main *bmain) | ||||
| { | { | ||||
| /* Update all ScrArea's tools */ | /* Update all ScrArea's tools */ | ||||
| for (wmWindowManager *wm = bmain->wm.first; wm; wm = wm->id.next) { | for (wmWindowManager *wm = bmain->wm.first; wm; wm = wm->id.next) { | ||||
| LISTBASE_FOREACH (wmWindow *, win, &wm->windows) { | LISTBASE_FOREACH (wmWindow *, win, &wm->windows) { | ||||
| WorkSpace *workspace = WM_window_get_active_workspace(win); | WorkSpace *workspace = WM_window_get_active_workspace(win); | ||||
| ▲ Show 20 Lines • Show All 322 Lines • Show Last 20 Lines | |||||