Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/screen/area.c
| Show First 20 Lines • Show All 1,973 Lines • ▼ Show 20 Lines | LISTBASE_FOREACH (ARegion *, region, &area->regionbase) { | ||||
| /* Some AZones use View2D data which is only updated in region init, so call that first! */ | /* Some AZones use View2D data which is only updated in region init, so call that first! */ | ||||
| region_azones_add(screen, area, region); | region_azones_add(screen, area, region); | ||||
| } | } | ||||
| /* Avoid re-initializing tools while resizing the window. */ | /* Avoid re-initializing tools while resizing the window. */ | ||||
| if ((G.moving & G_TRANSFORM_WM) == 0) { | if ((G.moving & G_TRANSFORM_WM) == 0) { | ||||
| if ((1 << area->spacetype) & WM_TOOLSYSTEM_SPACE_MASK) { | if ((1 << area->spacetype) & WM_TOOLSYSTEM_SPACE_MASK) { | ||||
| WM_toolsystem_refresh_screen_area(workspace, view_layer, area); | WM_toolsystem_refresh_screen_area(workspace, view_layer, area); | ||||
| area->flag |= AREA_FLAG_ACTIVE_TOOL_UPDATE; | |||||
| } | } | ||||
| else { | else { | ||||
| area->runtime.tool = NULL; | area->runtime.tool = NULL; | ||||
| area->runtime.is_tool_set = true; | area->runtime.is_tool_set = true; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 1,833 Lines • Show Last 20 Lines | |||||