diff options
author | Erik <ecke101@gmail.com> | 2021-11-15 19:10:53 +0300 |
---|---|---|
committer | Erik <ecke101@gmail.com> | 2021-11-22 20:23:54 +0300 |
commit | 012917837649676e9ec4b9c2d7d4f7bdfd408739 (patch) | |
tree | c028b70718bf6312c5d7e64812d7198f7d867258 /source/blender/editors/interface/interface_region_popup.c | |
parent | 55c82d8380ea3fd37a9d966fad10f42cc5b365d5 (diff) |
UI: Use a map for block name lookups
Use a map to speed up search for UI block names.
Time to redraw the node editor was decreased from
around 75-120ms to 40-70ms in a tree with many
Geometry Nodes.
Differential Revision: https://developer.blender.org/D13225
Diffstat (limited to 'source/blender/editors/interface/interface_region_popup.c')
-rw-r--r-- | source/blender/editors/interface/interface_region_popup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_region_popup.c b/source/blender/editors/interface/interface_region_popup.c index 0e53100f91b..0f903bd4af9 100644 --- a/source/blender/editors/interface/interface_region_popup.c +++ b/source/blender/editors/interface/interface_region_popup.c @@ -743,7 +743,7 @@ uiBlock *ui_popup_block_refresh(bContext *C, if (block_old) { block->oldblock = block_old; UI_block_update_from_old(C, block); - UI_blocklist_free_inactive(C, ®ion->uiblocks); + UI_blocklist_free_inactive(C, region); } /* checks which buttons are visible, sets flags to prevent draw (do after region init) */ |