fix: preserve complex edge edit values

This commit is contained in:
que01 committed 2026-09-10 11:38:47 +08:00
1 parent 936354fec8
commit 655e7efaef
1 file changed
+3 -5
+3 -5
View File
@@ -992,13 +992,11 @@ function solveConstraints(model, constraints, junctionData, diagnostics, cluster
? clusterPositions
: constraint.kind === 'cluster-carriageway-direction'
? clusterDirections
: clusterCutbacks;
: constraint.kind === 'cluster-carriageway-edge-offset'
? clusterEdgeOffsets
: clusterCutbacks;
if (!target.has(item.clusterId)) target.set(item.clusterId, new Map());
target.get(item.clusterId).set(item.key, value);
if (constraint.kind === 'cluster-carriageway-edge-offset') {
if (!clusterEdgeOffsets.has(item.clusterId)) clusterEdgeOffsets.set(item.clusterId, new Map());
clusterEdgeOffsets.get(item.clusterId).set(item.key, value);
}
applied = true;
}
} else if (constraint.kind === 'cluster-corner-radius') {