sort branches, update db

This commit is contained in:
Anthony Samms
2025-12-03 23:54:02 -05:00
parent 6bc499b699
commit f5f306a595
2 changed files with 67 additions and 16 deletions

View File

@@ -481,8 +481,10 @@ class Player:
for section in branch:
for note in section.draw_notes or []:
self.get_load_time(note)
section.draw_notes = sorted(section.draw_notes, key=lambda n: n.load_ms)
for note in section.bars or []:
self.get_load_time(note)
section.bars = sorted(section.bars, key=lambda n: n.load_ms)
if section.play_notes:
self.end_time = max(self.end_time, section.play_notes[-1].hit_ms)