* Implement Blender_Redraw(), minor changes in other files

* Implemented submodule Text
This commit is contained in:
2003-05-09 04:34:40 +00:00
parent ceeb5e7568
commit 81d2589d6a
8 changed files with 633 additions and 15 deletions

View File

@@ -159,20 +159,18 @@ PyObject *Blender_Get (PyObject *self, PyObject *args)
/*****************************************************************************/
PyObject *Blender_Redraw(PyObject *self, PyObject *args)
{
/*
int wintype = SPACE_VIEW3D;
printf ("In Blender_Redraw()\n");
if (!PyArg_ParseTuple (args, "|i", &wintype))
{
TODO: Do we need to generate a nice error message here?
return (NULL);
return EXPP_ReturnPyObjError (PyExc_TypeError,
"expected int argument (or nothing)");
}
return Windowmodule_Redraw(self, Py_BuildValue("(i)", wintype));
*/
return (Py_None);
return M_Window_Redraw(self, Py_BuildValue("(i)", wintype));
}
/*****************************************************************************/
@@ -198,5 +196,6 @@ void initBlender (void)
PyDict_SetItemString (dict, "Window", M_Window_Init());
PyDict_SetItemString (dict, "Draw", M_Draw_Init());
PyDict_SetItemString (dict, "BGL", M_BGL_Init());
PyDict_SetItemString (dict, "Text", M_Text_Init());
}