* Added submodule Window, including FileSelector and ImageSelector:
Most of the code comes from bpython/intern/opy_window.c, but two
new functions were added, to access the file and image selector
windows in Blender.
* Added submodules Draw (gui) and BGL (OpenGL wrapper):
The code comes from bpython/intern/opy_draw.c, with minor changes
to integrate it in the new implementation.
* Made changes to Camera, Lamp and Image submodules:
The implementation was improved. These files should be good
starting points for interested new coders to look at, now.
* Renamed interface.[ch] to EXPP_interface.[ch] to avoid conflict:
There is another interface.h file in source/blender/include.
This commit is contained in:
@@ -78,7 +78,13 @@ PyObject * PythonReturnErrorObject (PyObject * type, char * error_msg)
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
int EXPP_intError (PyObject *type, char *error_msg)
|
||||
PyObject *EXPP_ReturnPyObjError (PyObject * type, char * error_msg)
|
||||
{ /* same as above, just to change its name smoothly */
|
||||
PyErr_SetString (type, error_msg);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int EXPP_ReturnIntError (PyObject *type, char *error_msg)
|
||||
{
|
||||
PyErr_SetString (type, error_msg);
|
||||
return -1;
|
||||
@@ -86,7 +92,7 @@ int EXPP_intError (PyObject *type, char *error_msg)
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Description: This function increments the reference count of the given */
|
||||
/* Python object. */
|
||||
/* Python object (usually Py_None) and returns it. */
|
||||
/*****************************************************************************/
|
||||
PyObject * PythonIncRef (PyObject *object)
|
||||
{
|
||||
@@ -94,6 +100,11 @@ PyObject * PythonIncRef (PyObject *object)
|
||||
return (object);
|
||||
}
|
||||
|
||||
PyObject *EXPP_incr_ret (PyObject *object)
|
||||
{
|
||||
Py_INCREF (object);
|
||||
return (object);
|
||||
}
|
||||
/*****************************************************************************/
|
||||
/* Description: This function maps the event identifier to a string. */
|
||||
/*****************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user