Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface_ops.c
| Show First 20 Lines • Show All 1,374 Lines • ▼ Show 20 Lines | if (but) { | ||||
| // printf("%s: begin\n", __func__); | // printf("%s: begin\n", __func__); | ||||
| /* take care not to return before calling ui_editsource_active_but_clear */ | /* take care not to return before calling ui_editsource_active_but_clear */ | ||||
| ui_editsource_active_but_set(but); | ui_editsource_active_but_set(but); | ||||
| /* redraw and get active button python info */ | /* redraw and get active button python info */ | ||||
| ED_region_do_layout(C, region); | ED_region_do_layout(C, region); | ||||
| WM_draw_region_viewport_bind(region); | |||||
| ED_region_do_draw(C, region); | ED_region_do_draw(C, region); | ||||
| WM_draw_region_viewport_unbind(region); | |||||
| region->do_draw = false; | region->do_draw = false; | ||||
| for (BLI_ghashIterator_init(&ghi, ui_editsource_info->hash); | for (BLI_ghashIterator_init(&ghi, ui_editsource_info->hash); | ||||
| BLI_ghashIterator_done(&ghi) == false; | BLI_ghashIterator_done(&ghi) == false; | ||||
| BLI_ghashIterator_step(&ghi)) { | BLI_ghashIterator_step(&ghi)) { | ||||
| uiBut *but_key = BLI_ghashIterator_getKey(&ghi); | uiBut *but_key = BLI_ghashIterator_getKey(&ghi); | ||||
| if (but_key && ui_editsource_uibut_match(&ui_editsource_info->but_orig, but_key)) { | if (but_key && ui_editsource_uibut_match(&ui_editsource_info->but_orig, but_key)) { | ||||
| but_store = BLI_ghashIterator_getValue(&ghi); | but_store = BLI_ghashIterator_getValue(&ghi); | ||||
| ▲ Show 20 Lines • Show All 493 Lines • Show Last 20 Lines | |||||