graphics/FBD_Objects.py
changeset 1133 d81d99fd1932
parent 1130 f96e0254f0ce
child 1176 f4b434672204
--- a/graphics/FBD_Objects.py	Tue May 14 00:30:35 2013 +0200
+++ b/graphics/FBD_Objects.py	Tue May 14 10:56:57 2013 +0200
@@ -190,7 +190,9 @@
             for output in self.Outputs:
                 if output_name == output.GetName():
                     return output
-        return self.FindNearestConnector(position, self.Inputs + self.Outputs)
+        if input_name is None and output_name is None:
+            return self.FindNearestConnector(position, self.Inputs + self.Outputs)
+        return None
         
     def GetInputTypes(self):
         return tuple([input.GetType(True) for input in self.Inputs if input.GetName() != "EN"])