개정판 27d414f8
fix line
Change-Id: I4f96c35bdf31f0f9363b6d53aaf5603b64720628
DTI_PID/DTI_PID/LineNoTracer.py | ||
---|---|---|
522 | 522 |
x not in visited) and obj.is_connected(x)] |
523 | 523 |
symbolMatches = [x for x in self._symbols if |
524 | 524 |
(x.owner is None or x.owner == start.owner) and (x is not obj) and ( |
525 |
x not in visited) and obj.is_connected(x, None)]
|
|
525 |
x not in visited) and obj.is_connected(x)] |
|
526 | 526 |
nextMatches = symbolMatches + lineMatches |
527 | 527 |
|
528 | 528 |
if len(visited) > 1: # symbol must pass straight, choose one if connected items are more than 2 |
DTI_PID/DTI_PID/MainWindow.py | ||
---|---|---|
2828 | 2828 |
elif selected[0] in connectedItems: |
2829 | 2829 |
lineItem.connect_if_possible(selected[0], 5) |
2830 | 2830 |
else: |
2831 |
detector.connectLineToLine(selected[0].parent, lineItem, 5)
|
|
2831 |
detector.connectLineToLine(selected[0], lineItem, 5) |
|
2832 | 2832 |
|
2833 | 2833 |
self.graphicsView.scene().addItem(lineItem) |
2834 | 2834 |
# up to here |
내보내기 Unified diff