equal
deleted
inserted
replaced
1382 connector_max_used = ((wire_nums > 0) and self.OneConnected) |
1382 connector_max_used = ((wire_nums > 0) and self.OneConnected) |
1383 if (self.Parent.CurrentLanguage in ["SFC", "LD"]) and (self.Type == "BOOL"): |
1383 if (self.Parent.CurrentLanguage in ["SFC", "LD"]) and (self.Type == "BOOL"): |
1384 connector_max_used = False |
1384 connector_max_used = False |
1385 |
1385 |
1386 # connector is available for new connection |
1386 # connector is available for new connection |
1387 connect = connector_free or not connector_max_used |
1387 connect = connector_free or not connector_max_used |
1388 return connect, connector_max_used |
1388 return connect, connector_max_used |
1389 |
1389 |
1390 # Tests if the point given is near from the end point of this connector |
1390 # Tests if the point given is near from the end point of this connector |
1391 def TestPoint(self, pt, direction=None, exclude=True): |
1391 def TestPoint(self, pt, direction=None, exclude=True): |
1392 inside = False |
1392 inside = False |