BS 0.1.0 Architecture.UpdateTimeline无法一次更新彻底的错误

This commit is contained in:
2025-07-16 14:57:44 +08:00
parent afb206c8d1
commit ff039f1918

View File

@@ -381,11 +381,15 @@ namespace Convention
void UpdateTimeline() void UpdateTimeline()
{ {
for(auto&& [_, timeline] : TimelineQuenes) for (bool stats = true; stats;)
{
stats = false;
for (auto&& [_, timeline] : TimelineQuenes)
{ {
if (timeline.Quene[timeline.Context].predicate()) if (timeline.Quene[timeline.Context].predicate())
{ {
for(auto&& action : timeline.Quene[timeline.Context].actions) stats = true;
for (auto&& action : timeline.Quene[timeline.Context].actions)
{ {
action(); action();
} }
@@ -393,6 +397,7 @@ namespace Convention
} }
} }
} }
}
void ResetTimelineContext(int timelineId) void ResetTimelineContext(int timelineId)
{ {