From 37a41df603707fad37bc4e21b800b9b862af5a58 Mon Sep 17 00:00:00 2001 From: Roman Deev Date: Mon, 31 Aug 2026 04:02:43 +0300 Subject: [PATCH] Do not inherit the height of the roof --- src/buildingpart.js | 1 - 1 file changed, 1 deletion(-) 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) ??