[Pybrainsim-activity] SF.net SVN: pybrainsim:[113] trunk/src/Head.py
Status: Planning
Brought to you by:
rgoj
From: <rg...@us...> - 2009-08-15 15:55:37
|
Revision: 113 http://pybrainsim.svn.sourceforge.net/pybrainsim/?rev=113&view=rev Author: rgoj Date: 2009-08-15 15:55:24 +0000 (Sat, 15 Aug 2009) Log Message: ----------- * Correcting a mistake that would cause an uncorrect position to be added to position list anyway Modified Paths: -------------- trunk/src/Head.py Modified: trunk/src/Head.py =================================================================== --- trunk/src/Head.py 2009-08-15 15:06:17 UTC (rev 112) +++ trunk/src/Head.py 2009-08-15 15:55:24 UTC (rev 113) @@ -43,10 +43,9 @@ def addGenerator(self, generator, position = [0,0,0]): if self.headModel.checkPosition(position): self.generatorSiteList.append(position) + self.generatorList.append(generator) else: print("Wrong position of generator!") - self.generatorList.append(generator) - self.generatorSiteList.append(position) def addConnection(self, connection): self.connectionList.append(connection) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |