Skip to content

Commit 88e6936

Browse files
authored
Update buildingpart.js
1 parent 956e510 commit 88e6936

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/buildingpart.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ class BuildingPart {
162162
(calculatedOptions.roof.shape === 'flat' ? 0 : null) ??
163163
(calculatedOptions.roof.shape === 'dome' || calculatedOptions.roof.shape === 'pyramidal' ? BuildingShapeUtils.calculateRadius(this.shape) : null) ??
164164
(calculatedOptions.roof.shape === 'onion' ? BuildingShapeUtils.calculateRadius(this.shape) * 1.5 : null) ??
165-
(calculatedOptions.roof.shape === 'skillion' ? (calculatedOptions.roof.angle ? Math.cos(calculatedOptions.roof.angle / 360 * 2 * Math.PI) * shapeHeight : 22.5) : null);
165+
(calculatedOptions.roof.shape === 'skillion' ? (calculatedOptions.roof.angle ? Math.cos(calculatedOptions.roof.angle / 360 * 2 * Math.PI) * shapeHeight : Math.cos(22.5 / 360 * 2 * Math.PI) * shapeHeight) : null);
166166

167167
calculatedOptions.building.height = this.options.specified.building.height ??
168168
(isNaN(calculatedOptions.building.levels) ? null : (calculatedOptions.building.levels * 3) + calculatedOptions.roof.height) ??

0 commit comments

Comments
 (0)