Skip to content

Commit 7666f15

Browse files
authored
Fix chessboard gen for unique square sizes (#1217)
1 parent 45a39f6 commit 7666f15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

photon-client/src/components/cameras/CameraCalibrationCard.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ const downloadCalibBoard = () => {
102102
const yPos = chessboardStartY + squareY * squareSizeIn.value;
103103
104104
// Only draw the odd squares to create the chessboard pattern
105-
if ((xPos + yPos + 0.25) % 2 === 0) {
105+
if (squareY % 2 != squareX % 2) {
106106
doc.rect(xPos, yPos, squareSizeIn.value, squareSizeIn.value, "F");
107107
}
108108
}

0 commit comments

Comments
 (0)