Skip to content

Commit

Permalink
Update buildingpart.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Beakerboy authored May 15, 2024
1 parent e2ffbed commit 1ce6750
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/buildingpart.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ class BuildingPart {
if (!calculatedOptions.roof.direction && directionalRoofs.includes(calculatedOptions.roof.shape)) {
// Radians pi > x >= -pi
const longestSide = BuildingShapeUtils.longestSideAngle(this.shape)
if (calculatedOptions.roof.orientation) === 'along') {
if (calculatedOptions.roof.orientation === 'along') {
longestSide += Math.PI / 2
}
if (longestSide < 0) {
Expand Down

0 comments on commit 1ce6750

Please sign in to comment.