fix: preserve complex edge edit values
This commit is contained in:
1 parent
936354fec8
commit
655e7efaef
1 file changed
+3
-5
@@ -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') {
|
||||
|
||||
Reference in new issue
Block a user