Skip to content

Commit 2874327

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

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/buildingpart.js

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

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

0 commit comments

Comments
 (0)