== PyNodes ==

Bug #13277, reported by Juho (bebraw) Vepsalainen (thanks!) - a typo made pynodes w/o input socket definitions fail with an out of range error when accessing the output sockets in the script.
This commit is contained in:
Willian Padovani Germano 2008-05-30 20:04:52 +00:00
parent 791510f690
commit 5c1acc5ced

@ -848,7 +848,7 @@ static int Sockoutmap_assign_subscript(BPy_SockMap *self, PyObject *pyidx, PyObj
if (PyInt_Check(pyidx)) { if (PyInt_Check(pyidx)) {
idx = (int)PyInt_AsLong(pyidx); idx = (int)PyInt_AsLong(pyidx);
if (idx < 0 || idx >= Sockinmap_len(self)) if (idx < 0 || idx >= Sockoutmap_len(self))
return EXPP_ReturnIntError(PyExc_IndexError, "index out of range"); return EXPP_ReturnIntError(PyExc_IndexError, "index out of range");
} }
else if (PyString_Check(pyidx)) { else if (PyString_Check(pyidx)) {