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 a1863b0 commit 96f596d
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 @@ -149,7 +149,7 @@ class BuildingPart {
calculatedOptions.roof.direction = this.options.specified.roof.direction ?? this.options.inherited.roof.direction;
if (!calculatedOptions.roof.direction && directionalRoofs.includes(calculatedOptions.roof.shape)) {
// Radians pi > x >= -pi
const longestSide = BuildingShapeUtils.longestSideAngle(this.shape);
let longestSide = BuildingShapeUtils.longestSideAngle(this.shape);
if (calculatedOptions.roof.orientation === 'along') {
longestSide += Math.PI / 2;
}
Expand Down

0 comments on commit 96f596d

Please sign in to comment.