Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWillian Padovani Germano <wpgermano@gmail.com>2004-04-11 08:41:33 +0400
committerWillian Padovani Germano <wpgermano@gmail.com>2004-04-11 08:41:33 +0400
commit149fad4be63e1926f923890730fe0b578a7f3f92 (patch)
tree7eef6199bc7bd406fb10e2cc38272d304c27744b /source/blender/python/api2_2x/Blender.h
parentae9233a5b05ebfc925fd542afbdb3bb9220ed65c (diff)
BPython: cleaning some bug tracker entries:
(excuse me for doing all in a single commit, but they are tiny fixes and it's bpython, that dark corner ...) #1025 - FileSelector SEGV on dynamic callback Category: Can't reproduce with current cvs, I'd say recent changes to fix another crash related to FileSelector in gui-less scripts solved this one, too. #1028 - Reserved button event number: Menu choices generate two events, one extra related to the menu itself, with value=4. Made bpython ignore this extra event. #1068 - FileSelector No file extension support: As Ton wrote there, Blender itself doesn't support this yet. But the requester also wanted Window.File/ImageSelector to accept a pathname. Done. Also updated doc. #959 - Segfault on background rendering: This happened in bg mode (blender -b filename -a, for example) when a script with the line "Blender.Redraw()" was linked to FRAMECHANGED events. As reported in the bug page, it was because curarea is NULL in bg mode. Made Redraw() check for this and not call functions that expected curarea in Redraw, like one to swap buffers. #1072 - Blender.Redraw() Segfault: Good catch : ). Scripts called from the scripts win that called Blender.Redraw() or Blender.Window.Redraw() would crash Blender because of a dirty pointer in Spacescript->script. Fixed.
Diffstat (limited to 'source/blender/python/api2_2x/Blender.h')
-rw-r--r--source/blender/python/api2_2x/Blender.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/python/api2_2x/Blender.h b/source/blender/python/api2_2x/Blender.h
index f44df3e3cb0..12417651637 100644
--- a/source/blender/python/api2_2x/Blender.h
+++ b/source/blender/python/api2_2x/Blender.h
@@ -93,10 +93,10 @@ char Blender_Quit_doc[] =
/* Python method structure definition. */
/*****************************************************************************/
struct PyMethodDef Blender_methods[] = {
- {"Set", &Blender_Set, METH_VARARGS, Blender_Set_doc},
- {"Get", &Blender_Get, METH_VARARGS, Blender_Get_doc},
- {"Redraw", &Blender_Redraw, METH_VARARGS, Blender_Redraw_doc},
- {"Quit", &Blender_Quit, METH_NOARGS, Blender_Quit_doc},
+ {"Set", Blender_Set, METH_VARARGS, Blender_Set_doc},
+ {"Get", Blender_Get, METH_VARARGS, Blender_Get_doc},
+ {"Redraw", Blender_Redraw, METH_VARARGS, Blender_Redraw_doc},
+ {"Quit", (PyCFunction)Blender_Quit, METH_NOARGS, Blender_Quit_doc},
{"ReleaseGlobalDict", &Blender_ReleaseGlobalDict,
METH_VARARGS, Blender_ReleaseGlobalDict_doc},
{NULL, NULL}