Commit a42107d4 authored by Luna Riegel's avatar Luna Riegel
Browse files

Fix: Resolve deferred RelativeGeometries with cache

parent 8087b4bb
...@@ -68,7 +68,7 @@ public class ImplicitGeometryHolder extends Geometry { ...@@ -68,7 +68,7 @@ public class ImplicitGeometryHolder extends Geometry {
RelativeGeometry relGeom = RelativeGeometry.of(gmlId); RelativeGeometry relGeom = RelativeGeometry.of(gmlId);
if (relGeom != null) { if (relGeom != null) {
ImplicitGeometryHolder igh = new ImplicitGeometryHolder(ig, relGeom); ImplicitGeometryHolder igh = new ImplicitGeometryHolder(ig, relGeom);
CityObject parent = key.getParent(); CityObject parent = cache.get(key.getParent().getGmlId());
parent.removeGeometry(igh.getLod(), igh.getType()); parent.removeGeometry(igh.getLod(), igh.getType());
parent.addGeometry(igh); parent.addGeometry(igh);
} else { } else {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment