Fix for new UI system and vertexpaint/faceselect/weightpaint/texturepaint

If backbuffer is in use for selection codes, the system switches back to
frontbuffer drawing temporally. Is easier solution now.

Next commit; fix for new 'zbuffer clipped selection', which also doesnt
work after using a pulldown or popup menu.
This commit is contained in:
2004-10-03 20:02:22 +00:00
parent b7ac42a4c6
commit 010200f9b5
5 changed files with 46 additions and 21 deletions

View File

@@ -1715,10 +1715,10 @@ void ui_draw_but(uiBut *but)
double value;
float x1, x2, y1, y2, fac;
if(but==0) return;
if(but==NULL) return;
/* signal for flush buttons and menus */
ui_block_set_flush(but->block, but);
if(but->block->in_use) ui_block_set_flush(but->block, but);
switch (but->type) {