- bugfix for 1078

- slider crashes blender because of redraw commands - fixed
- styken reported/fixed this bug
This commit is contained in:
Joseph Gilbert
2004-03-23 03:07:41 +00:00
parent 00291b5cf4
commit 9acb3c8ff0
2 changed files with 5 additions and 1 deletions

View File

@@ -489,8 +489,11 @@ static void py_slider_update(void *butv, void *data2_unused)
/* removed global uiFrontBuf (contact ton when this goes wrong here) */
spacescript_do_pywin_buttons(curarea->spacedata.first, uiButGetRetVal(but));
if (!g_window_redrawn) /*@ if Redraw already called */
if (!g_window_redrawn){ /*@ if Redraw already called */
disable_where_script(1);
M_Window_Redraw(0, Py_BuildValue("(i)", SPACE_VIEW3D));
disable_where_script(0);
}
EXPP_disable_force_draw= 0;
}

View File

@@ -51,6 +51,7 @@
#include "BKE_global.h"
#include "BKE_library.h"
#include "BKE_object.h"
#include "BIF_gl.h"
#include "BIF_screen.h"