개정판 0bd9a27d
issue #637: fix end break modeling
Change-Id: I0080fa2f7262089f171169ef516586ed28362f1b
DTI_PID/DTI_PID/LineNoTracer.py | ||
---|---|---|
578 | 578 |
for end_break in end_breaks: |
579 | 579 |
if not end_break.prop('Freeze'): |
580 | 580 |
end_break.transfer.onRemoved.connect(App.mainWnd().itemRemoved) |
581 |
end_break.addSvgItemToScene(worker.graphicsView.scene) |
|
581 |
# end break can be modeled only piping line |
|
582 |
if (type(end_break.owner) is not QEngineeringLineItem or (type(end_break.owner) is QEngineeringLineItem and (end_break.owner.lineType == 'Secondary' or end_break.owner.lineType == 'Primary'))) \ |
|
583 |
and (type(end_break.prop('Connected Item')) is not QEngineeringLineItem or (type(end_break.prop('Connected Item')) is QEngineeringLineItem and (end_break.prop('Connected Item').lineType == 'Secondary' or end_break.prop('Connected Item').lineType == 'Primary'))): |
|
584 |
end_break.addSvgItemToScene(worker.graphicsView.scene) |
|
582 | 585 |
|
583 | 586 |
"""make flow mark""" |
584 | 587 |
for line in lines: |
내보내기 Unified diff