[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [15064] trunk/blender/source/blender/ python/api2_2x/Node.c: == PyNodes ==

Willian Padovani Germano wpgermano at gmail.com
Fri May 30 22:04:52 CEST 2008


Revision: 15064
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=15064
Author:   ianwill
Date:     2008-05-30 22:04:52 +0200 (Fri, 30 May 2008)

Log Message:
-----------
== 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.

Modified Paths:
--------------
    trunk/blender/source/blender/python/api2_2x/Node.c

Modified: trunk/blender/source/blender/python/api2_2x/Node.c
===================================================================
--- trunk/blender/source/blender/python/api2_2x/Node.c	2008-05-30 19:52:42 UTC (rev 15063)
+++ trunk/blender/source/blender/python/api2_2x/Node.c	2008-05-30 20:04:52 UTC (rev 15064)
@@ -848,7 +848,7 @@
 
 	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)) {





More information about the Bf-blender-cvs mailing list