This commit is contained in:
thepaperpilot 2024-02-20 22:38:49 -06:00
parent 5f8e35478d
commit f7a8fbbb11

View file

@ -346,11 +346,11 @@ export const branchedResetPropagation = function (
const next: GenericTreeNode[] = []; const next: GenericTreeNode[] = [];
for (const node of current) { for (const node of current) {
for (const link of links.filter(link => link.startNode === node)) { for (const link of links.filter(link => link.startNode === node)) {
if ([...reset, ...current].includes(link.endNode)) continue if ([...reset, ...current].includes(link.endNode)) continue;
next.push(link.endNode); next.push(link.endNode);
link.endNode.reset?.reset(); link.endNode.reset?.reset();
} }
}; }
reset.push(...current); reset.push(...current);
current = next; current = next;
} }