Skip to content

Commit 217349b

Browse files
authored
Update BuildingShapeUtils.js
1 parent 40fcaef commit 217349b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/extras/BuildingShapeUtils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ class BuildingShapeUtils extends ShapeUtils {
391391
const angles = [];
392392
var p1;
393393
var p2;
394-
for (const i in points) {
394+
for (let i = 0; i < points.length; i++) {
395395
p1 = points[i];
396396
p2 = points[(i + 1) % points.length];
397397
let angle = Math.atan2((p2.y - p1.y), (p2.x - p1.x));

0 commit comments

Comments
 (0)