mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-23 16:49:40 +02:00
Fix infinite recursion error caused when rendering cyclical relations (close #7691)
This commit is contained in:
@@ -300,7 +300,14 @@ export function svgVertices(projection, context) {
|
||||
function getSiblingAndChildVertices(ids, graph, wireframe, zoom) {
|
||||
var results = {};
|
||||
|
||||
var seenIds = {};
|
||||
|
||||
function addChildVertices(entity) {
|
||||
|
||||
// avoid redunant work and infinite recursion of circular relations
|
||||
if (seenIds[entity.id]) return;
|
||||
seenIds[entity.id] = true;
|
||||
|
||||
var geometry = entity.geometry(graph);
|
||||
if (!context.features().isHiddenFeature(entity, graph, geometry)) {
|
||||
var i;
|
||||
|
||||
Reference in New Issue
Block a user