Skip to content

Commit 0f088fc

Browse files
authored
Update buildingpart.js
1 parent 4a2c2dc commit 0f088fc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/buildingpart.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,12 @@ class BuildingPart {
269269
const options = {
270270
center: center,
271271
angle: angle / 180 * Math.PI,
272-
depth: this.options.roof.height,
273272
};
273+
if (options.depth === null) {
274+
options.pitch = 22.5;
275+
} else {
276+
options.depth = this.options.roof.height;
277+
}
274278
const geometry = new WedgeGeometry(this.shape, options);
275279

276280
material = BuildingPart.getRoofMaterial(this.way);

0 commit comments

Comments
 (0)