Skip to content

Commit 4c309ce

Browse files
authored
Update buildingpart.js (#109)
1 parent d33a85d commit 4c309ce

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
@@ -154,7 +154,7 @@ class BuildingPart {
154154
longestSide += Math.PI;
155155
}
156156
// Convert to angle.
157-
calculatedOptions.roof.direction = longestSide / Math.PI * 180 + Math.PI / 2;
157+
calculatedOptions.roof.direction = longestSide / Math.PI * 180 + 90;
158158
}
159159
const extents = BuildingShapeUtils.extents(this.shape, calculatedOptions.roof.direction / 360 * 2 * Math.PI);
160160
const shapeHeight = extents[3] - extents[1];

0 commit comments

Comments
 (0)