mildly silly way of fixing constraint inheritance for cached nodes following an edit

This commit is contained in:
stopflock committed 2026-10-04 23:24:55 -05:00
1 parent c317178117
commit 6c9abba15b
3 files changed
+75 -2

No files matched your search

+3 -1
View File
@@ -30,7 +30,9 @@ class NodeCache {
id: node.id,
coord: node.coord,
tags: mergedTags,
isConstrained: node.isConstrained, // Preserve constraint information
// Once a node is known to be constrained, keep it that way - see
// NodeSpatialCache.addOrUpdateNodes for the full explanation.
isConstrained: existing.isConstrained || node.isConstrained,
);
} else {
_nodes[node.id] = node;