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
|
? clusterPositions
|
||||||
: constraint.kind === 'cluster-carriageway-direction'
|
: constraint.kind === 'cluster-carriageway-direction'
|
||||||
? clusterDirections
|
? clusterDirections
|
||||||
: clusterCutbacks;
|
: constraint.kind === 'cluster-carriageway-edge-offset'
|
||||||
|
? clusterEdgeOffsets
|
||||||
|
: clusterCutbacks;
|
||||||
if (!target.has(item.clusterId)) target.set(item.clusterId, new Map());
|
if (!target.has(item.clusterId)) target.set(item.clusterId, new Map());
|
||||||
target.get(item.clusterId).set(item.key, value);
|
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;
|
applied = true;
|
||||||
}
|
}
|
||||||
} else if (constraint.kind === 'cluster-corner-radius') {
|
} else if (constraint.kind === 'cluster-corner-radius') {
|
||||||
|
|||||||
Reference in new issue
Block a user