[Bf-committers] Fix bug 1078

Kenneth Styrberg bf-committers@blender.org
Tue, 23 Mar 2004 00:02:24 +0100


Here's a short fix for bug 1078. This sets a flag that tells the code in =
M_Window_Redraw(...) that we are running a script.

//styken

RCS file: =
/cvsroot/bf-blender/blender/source/blender/python/api2_2x/Draw.c,v
retrieving revision 1.18
diff -u -r1.18 Draw.c
--- Draw.c 6 Mar 2004 10:35:15 -0000 1.18
+++ Draw.c 22 Mar 2004 23:00:19 -0000

- 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=3D 0;
 }