Adding ability of branching

This commit is contained in:
2026-07-09 16:19:19 +02:00
parent 4fed309e47
commit fc60ef8c89
+4
View File
@@ -275,7 +275,11 @@ class BeamlineEditor(QtWidgets.QMainWindow, Ui_BeamlineGUI):
self.elementDB[ele].Prefix=name
if ele in self.branchingID.keys():
if self.branchingID[ele] is True:
self.elementDB[ele].angle=self.elementDB[ele].design_angle
line.LengthRes=0 # needs to shorten the line container
return True
else:
self.elementDB[ele].angle=0
if secondBranch:
if tree.secondary:
self.unwrap(name, tree.secondary.node_id, line, case_num)