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:
authorStephen Swaney <sswaney@centurytel.net>2004-06-07 02:42:51 +0400
committerStephen Swaney <sswaney@centurytel.net>2004-06-07 02:42:51 +0400
commita703837179d40fc5e34ae06619d4610a09f72097 (patch)
treec4e456784f79dd26393e2350155b75c398d0d706 /source/blender/python/api2_2x/Image.c
parentd97e3e55273c6c381eead86f807514ef1d4a3941 (diff)
Replace deprecated methods from old api:
PythonReturnErrorObject PythonIncRef Fix some compiler warnings about missing initializers in method tables.
Diffstat (limited to 'source/blender/python/api2_2x/Image.c')
-rw-r--r--source/blender/python/api2_2x/Image.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/python/api2_2x/Image.c b/source/blender/python/api2_2x/Image.c
index 70fdd99c235..e897bb5c5ac 100644
--- a/source/blender/python/api2_2x/Image.c
+++ b/source/blender/python/api2_2x/Image.c
@@ -153,14 +153,14 @@ static PyObject *M_Image_Get(PyObject *self, PyObject *args)
img_list = PyList_New (BLI_countlist (&(G.main->image)));
if (img_list == NULL)
- return (PythonReturnErrorObject (PyExc_MemoryError,
+ return (EXPP_ReturnPyObjError (PyExc_MemoryError,
"couldn't create PyList"));
while (img_iter) {
pyobj = Image_CreatePyObject (img_iter);
if (!pyobj)
- return (PythonReturnErrorObject (PyExc_MemoryError,
+ return (EXPP_ReturnPyObjError (PyExc_MemoryError,
"couldn't create PyObject"));
PyList_SET_ITEM (img_list, index, pyobj);
@@ -262,7 +262,7 @@ static PyMethodDef BPy_Image_methods[] = {
"(int) - Change Image object x repetition value"},
{"setYRep", (PyCFunction)Image_setYRep, METH_VARARGS,
"(int) - Change Image object y repetition value"},
- {0}
+ {NULL, NULL, 0, NULL}
};
/*****************************************************************************/