diff options
author | Willian Padovani Germano <wpgermano@gmail.com> | 2003-09-03 08:13:08 +0400 |
---|---|---|
committer | Willian Padovani Germano <wpgermano@gmail.com> | 2003-09-03 08:13:08 +0400 |
commit | a09e5a7f2f3ae81f504106eeb62373bb99b39b51 (patch) | |
tree | 838de24f316bcf1a5a1d15d057338ef8cf2d7108 /source/blender/python/api2_2x/Window.h | |
parent | 65746ab10a1031e4a1275c21051bce0064be5219 (diff) |
Exppython:
- Window: added .GetCursorPos()
- Lamp: updated for NoDiffuse and NoSpecular modes
- Registry: new module to handle persistent data
- vector: made it correctly print only 3 values when vec->size==3:
Fixes nmvert coords printed with a 4th 0.0 coordinate
- Text: fixed crash on startup (Python 2.3, linux):
added definition of the Text pyobject earlier, in Types.c
Diffstat (limited to 'source/blender/python/api2_2x/Window.h')
-rw-r--r-- | source/blender/python/api2_2x/Window.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Window.h b/source/blender/python/api2_2x/Window.h index c2831457019..525701228fe 100644 --- a/source/blender/python/api2_2x/Window.h +++ b/source/blender/python/api2_2x/Window.h @@ -68,6 +68,7 @@ static PyObject *M_Window_QRedrawAll (PyObject *self, PyObject *args); static PyObject *M_Window_FileSelector (PyObject *self, PyObject *args); static PyObject *M_Window_ImageSelector (PyObject *self, PyObject *args); static PyObject *M_Window_DrawProgressBar (PyObject *self, PyObject *args); +static PyObject *M_Window_GetCursorPos (PyObject *self); /*****************************************************************************/ /* The following string definitions are used for documentation strings. */ @@ -111,6 +112,9 @@ char M_Window_DrawProgressBar_doc[] = 'done' is a float value <= 1.0, 'text' contains info about what is\n\ currently being done."; +char M_Window_GetCursorPos_doc[] = +"() - Get the current 3d cursor position as a list of three floats."; + /*****************************************************************************/ /* Python method structure definition for Blender.Window module: */ /*****************************************************************************/ @@ -118,13 +122,16 @@ struct PyMethodDef M_Window_methods[] = { {"Redraw", M_Window_Redraw, METH_VARARGS, M_Window_Redraw_doc}, {"RedrawAll", M_Window_RedrawAll, METH_VARARGS, M_Window_RedrawAll_doc}, {"QRedrawAll", M_Window_QRedrawAll, METH_VARARGS, M_Window_QRedrawAll_doc}, - {"FileSelector", M_Window_FileSelector, METH_VARARGS, M_Window_FileSelector_doc}, + {"FileSelector", M_Window_FileSelector, METH_VARARGS, + M_Window_FileSelector_doc}, {"ImageSelector", M_Window_ImageSelector, METH_VARARGS, M_Window_ImageSelector_doc}, {"DrawProgressBar", M_Window_DrawProgressBar, METH_VARARGS, M_Window_DrawProgressBar_doc}, {"drawProgressBar", M_Window_DrawProgressBar, METH_VARARGS, M_Window_DrawProgressBar_doc}, + {"GetCursorPos", (PyCFunction)M_Window_GetCursorPos, METH_NOARGS, + M_Window_GetCursorPos_doc}, {NULL, NULL, 0, NULL} }; |