equal
deleted
inserted
replaced
1375 |
1375 |
1376 # assume that pointer is already inside of this connector |
1376 # assume that pointer is already inside of this connector |
1377 def ConnectionAvailable(self, direction=None, exclude=True): |
1377 def ConnectionAvailable(self, direction=None, exclude=True): |
1378 wire_nums = len(self.Wires) |
1378 wire_nums = len(self.Wires) |
1379 |
1379 |
1380 connector_free = (wire_nums<= 0) |
1380 connector_free = (wire_nums <= 0) |
1381 connector_max_used = ((wire_nums > 0) and self.OneConnected) |
1381 connector_max_used = ((wire_nums > 0) and self.OneConnected) |
1382 if (self.Parent.CurrentLanguage in ["SFC", "LD"]) and (self.Type == "BOOL"): |
1382 if (self.Parent.CurrentLanguage in ["SFC", "LD"]) and (self.Type == "BOOL"): |
1383 connector_max_used = False; |
1383 connector_max_used = False; |
1384 |
1384 |
1385 # connector is available for new connection |
1385 # connector is available for new connection |