Blender Git Loki

Git Commits -> Revision 4d2de02

Revision 4d2de02 by Ken Hughes (master)
October 30, 2005, 14:34 (GMT)


-- fix compiler warning about return "from incompatible pointer type" when
returning Python exceptions. EXPP_ReturnPyObjError() always returns a
NULL because Python expects error conditions to return a NULL pointer
instead of an object. Since the pointer is cast to a PyObject *, it's
ugly to use for propagating the errors back in this case, so this fix just
uses PyErr_SetString() to set the error and return NULL (see the body
of EXPP_ReturnPyObjError() ).

Commit Details:

Full Hash: 4d2de0293e579e6e2849d43f1d36efb1aae98110
SVN Revision: 5646
Parent Commit: ea8b08c
Lines Changed: +11, -6

1 Modified Path:

/source/blender/python/api2_2x/NMesh.c (+11, -6) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021