Files
workinf_Blender_Wasm/do_draw
mes123456 f3e21c6b98
Some checks failed
M6 deployable RC / quick (push) Has been cancelled
M6 deployable RC / chromium (push) Has been cancelled
M6 deployable RC / release (push) Has been cancelled
chore: checkpoint web Blender migration source, tools and docs
Accumulated uncommitted work: GHOST Web backend, WebGL/GPU web layer,
web workflow engine and protocol, tooling, docs and task records.
Large generated evidence, user-testing archives, build snapshots and
imported test assets remain untracked.

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-10 11:18:01 +08:00

74 lines
4.3 KiB
Plaintext

{
"schemaVersion": 1,
"task": "WBV2-P1424-001",
"scope": "batch",
"pattern": "region-",
"selectedUnits": [],
"sourcePathCount": 1,
"runtimePathCount": 0,
"hitCount": 89,
"truncated": true,
"hits": [
"136: if (!region->runtime->visible || region != screen->active_region) {",
"150: if (!ELEM(pc.region_type, RGN_TYPE_ANY, region->regiontype)) {",
"155: ui::theme::theme_set(area->spacetype, region->regiontype);",
"159: GPU_scissor(region->winrct.xmin,",
"160: region->winrct.ymin,",
"161: BLI_rcti_size_x(&region->winrct) + 1,",
"162: BLI_rcti_size_y(&region->winrct) + 1);",
"438: wmViewport(&region->winrct);",
"439: ui::theme::theme_set(area->spacetype, region->regiontype);",
"440: region->runtime->type->draw_overlay(C, region);",
"457: if (!ELEM(region->regiontype, RGN_TYPE_WINDOW, RGN_TYPE_PREVIEW)) {",
"463: if (region->regiontype == RGN_TYPE_WINDOW) {",
"471: if (region->regiontype == RGN_TYPE_WINDOW) {",
"474: RegionView3D *rv3d = static_cast<RegionView3D *>(region->regiondata);",
"493: if (region->regiontype == RGN_TYPE_WINDOW) {",
"507: if (region->regiontype == RGN_TYPE_PREVIEW) {",
"521: if (region->runtime->gizmo_map == nullptr) {",
"525: wmGizmoMap *gzmap = region->runtime->gizmo_map;",
"560: if (area->spacetype == SPACE_VIEW3D && region->regiontype == RGN_TYPE_WINDOW) {",
"561: RegionView3D *rv3d = static_cast<RegionView3D *>(region->regiondata);",
"604: if ((area->spacetype == SPACE_VIEW3D) && (region->regiontype == RGN_TYPE_WINDOW)) {",
"623: return wm_region_use_viewport_by_type(area->spacetype, region->regiontype);",
"728: if (region->runtime->draw_buffer) {",
"729: if (region->runtime->draw_buffer->viewport) {",
"730: GPU_viewport_free(region->runtime->draw_buffer->viewport);",
"732: if (region->runtime->draw_buffer->offscreen) {",
"733: GPU_offscreen_free(region->runtime->draw_buffer->offscreen);",
"736: MEM_delete(region->runtime->draw_buffer);",
"737: region->runtime->draw_buffer = nullptr;",
"769: const wmDrawBuffer *buffer = region->runtime->draw_buffer;",
"809: if (region->runtime->draw_buffer) {",
"810: if (region->runtime->draw_buffer->stereo != stereo) {",
"816: GPUOffScreen *offscreen = region->runtime->draw_buffer->offscreen;",
"817: if (offscreen && (GPU_offscreen_width(offscreen) != region->winx ||",
"818: GPU_offscreen_height(offscreen) != region->winy ||",
"826: if (!region->runtime->draw_buffer) {",
"829: region->runtime->draw_buffer = MEM_new_zeroed<wmDrawBuffer>(\"wmDrawBuffer\");",
"830: region->runtime->draw_buffer->viewport = stereo ? GPU_viewport_stereo_create() :",
"833: if (!region->runtime->draw_buffer->viewport) {",
"835: MEM_delete(region->runtime->draw_buffer);",
"836: region->runtime->draw_buffer = nullptr;",
"845: GPUOffScreen *offscreen = GPU_offscreen_create(region->winx,",
"846: region->winy,",
"865: region->runtime->draw_buffer = MEM_new_zeroed<wmDrawBuffer>(\"wmDrawBuffer\");",
"866: region->runtime->draw_buffer->offscreen = offscreen;",
"869: region->runtime->draw_buffer->bound_view = -1;",
"870: region->runtime->draw_buffer->stereo = stereo;",
"876: if (!region->runtime->draw_buffer) {",
"885: if (region->runtime->draw_buffer->viewport) {",
"886: GPU_viewport_bind(region->runtime->draw_buffer->viewport, view, &region->winrct);",
"889: GPU_offscreen_bind(region->runtime->draw_buffer->offscreen, false);",
"910: GPU_scissor(0, 0, region->winx, region->winy);",
"913: region->runtime->draw_buffer->bound_view = view;",
"918: if (!region->runtime->draw_buffer) {",
"922: region->runtime->draw_buffer->bound_view = -1;",
"924: if (region->runtime->draw_buffer->viewport) {",
"925: GPU_viewport_unbind(region->runtime->draw_buffer->viewport);",
"929: GPU_offscreen_unbind(region->runtime->draw_buffer->offscreen, false);",
"942: region->runtime->draw_buffer->draw_incomplete = true;",
"950: region->runtime->draw_buffer->draw_incomplete = false;"
]
}