forked from bartvdbraak/blender
== 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:
parent
791510f690
commit
5c1acc5ced
@ -848,7 +848,7 @@ static int Sockoutmap_assign_subscript(BPy_SockMap *self, PyObject *pyidx, PyObj
|
||||
|
||||
if (PyInt_Check(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");
|
||||
}
|
||||
else if (PyString_Check(pyidx)) {
|
||||
|
Loading…
Reference in New Issue
Block a user