* Fix compilation errors on Windows hopefully. Implemented the suggestion done
by Aphex - thanks. * Added the doc strings to the Object module. * Added more functionality to the Object module.
This commit is contained in:
@@ -210,6 +210,8 @@ PyObject *M_Image_Init (void)
|
||||
{
|
||||
PyObject *submodule;
|
||||
|
||||
Image_Type.ob_type = &PyType_Type;
|
||||
|
||||
submodule = Py_InitModule3("Blender.Image", M_Image_methods, M_Image_doc);
|
||||
|
||||
return (submodule);
|
||||
@@ -261,7 +263,7 @@ static PyObject *Image_Repr (C_Image *self);
|
||||
/*****************************************************************************/
|
||||
PyTypeObject Image_Type =
|
||||
{
|
||||
PyObject_HEAD_INIT(&PyType_Type)
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0, /* ob_size */
|
||||
"Image", /* tp_name */
|
||||
sizeof (C_Image), /* tp_basicsize */
|
||||
|
Reference in New Issue
Block a user