Skip to content

Commit

Permalink
fix: 修复线段变量重置异常bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Vespa314 committed Jul 6, 2024
1 parent 57abb69 commit c6ef94b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Seg/SegListChan.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ def __init__(self, seg_config=CSegConfig(), lv=SEG_TYPE.BI):
def do_init(self):
# 删除末尾不确定的线段
while len(self) and not self.lst[-1].is_sure:
_seg = self[-1]
for bi in _seg.bi_list:
bi.parent_seg = None
if _seg.pre:
_seg.pre.next = None
self.lst.pop()
if len(self):
assert self.lst[-1].eigen_fx and self.lst[-1].eigen_fx.ele[-1]
Expand Down

0 comments on commit c6ef94b

Please sign in to comment.