diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-01-09 17:15:23 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-01-09 17:15:23 +0400 |
commit | 2d526c23dde460de6573bb8795d3490722498387 (patch) | |
tree | 96a46a5c08b1f31bd5b3dc1db754f75f1db38c55 /source/blender/editors/interface | |
parent | cf2eeabf6dc84b7ac527df2e7a9358f1acaf79d6 (diff) |
remove uiPanelClearType(), instead redraw all windows when registering/unregistering.
Diffstat (limited to 'source/blender/editors/interface')
-rw-r--r-- | source/blender/editors/interface/interface_panel.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/source/blender/editors/interface/interface_panel.c b/source/blender/editors/interface/interface_panel.c index bcd49551784..9fbf2fe8898 100644 --- a/source/blender/editors/interface/interface_panel.c +++ b/source/blender/editors/interface/interface_panel.c @@ -306,31 +306,6 @@ void uiEndPanel(uiBlock *block, int width, int height) } } -void uiPanelClearType(wmWindowManager *wm, const ARegionType *art, const PanelType *type) -{ - wmWindow *win; - for (win = wm->windows.first; win; win = win->next) { - ScrArea *sa; - for (sa = win->screen->areabase.first; sa; sa = sa->next) { - ARegion *ar; - for (ar = sa->regionbase.first; ar; ar = ar->next) { - if (ar->type == art) { - uiBlock *block, *nblock = ar->uiblocks.first; - while ((block = nblock)) { - nblock = block->next; - if (block->panel) { - if (block->panel->type == type) { - uiFreeBlock(block->evil_C, block); - BLI_remlink(&ar->uiblocks, block); - } - } - } - } - } - } - } -} - static void ui_offset_panel_block(uiBlock *block) { uiStyle *style = UI_GetStyleDraw(); |