diff options
author | Joseph Gilbert <ascotan@gmail.com> | 2004-03-23 06:07:41 +0300 |
---|---|---|
committer | Joseph Gilbert <ascotan@gmail.com> | 2004-03-23 06:07:41 +0300 |
commit | 9acb3c8ff078a418d944492ed1f415fada62aa36 (patch) | |
tree | f5dea1253da49289ea75c2a4e8bf432f190dd275 /source | |
parent | 00291b5cf4a0f16ddca425b74ed30e8ac35d40e2 (diff) |
- bugfix for 1078
- slider crashes blender because of redraw commands - fixed
- styken reported/fixed this bug
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/python/api2_2x/Draw.c | 5 | ||||
-rw-r--r-- | source/blender/python/api2_2x/Draw.h | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Draw.c b/source/blender/python/api2_2x/Draw.c index 475088de9e3..97f7bb88a64 100644 --- a/source/blender/python/api2_2x/Draw.c +++ b/source/blender/python/api2_2x/Draw.c @@ -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; } diff --git a/source/blender/python/api2_2x/Draw.h b/source/blender/python/api2_2x/Draw.h index 04169e6d215..d97681f5233 100644 --- a/source/blender/python/api2_2x/Draw.h +++ b/source/blender/python/api2_2x/Draw.h @@ -51,6 +51,7 @@ #include "BKE_global.h" #include "BKE_library.h" +#include "BKE_object.h" #include "BIF_gl.h" #include "BIF_screen.h" |