diff --git a/src/buildingpart.js b/src/buildingpart.js index 25d4838..8cab14f 100644 --- a/src/buildingpart.js +++ b/src/buildingpart.js @@ -157,7 +157,6 @@ class BuildingPart { const extents = BuildingShapeUtils.extents(this.shape, calculatedOptions.roof.direction / 360 * 2 * Math.PI); const shapeHeight = extents[3] - extents[1]; calculatedOptions.roof.height = this.options.specified.roof.height ?? - this.options.inherited.roof.height ?? (isNaN(calculatedOptions.roof.levels) ? null : (calculatedOptions.roof.levels * 3)) ?? (calculatedOptions.roof.shape === 'flat' ? 0 : null) ?? (calculatedOptions.roof.shape === 'dome' || calculatedOptions.roof.shape === 'pyramidal' ? BuildingShapeUtils.calculateRadius(this.shape) : null) ??