From 0e5f275b97ed14f85a44ad9f20b99301063f5442 Mon Sep 17 00:00:00 2001 From: "Morgan 'ARR\\!' Allen" Date: Fri, 16 May 2025 18:05:34 -0700 Subject: [PATCH] quickish fix to prevent board from jumping around when overall size changes --- freecad/kiconnect/board.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/freecad/kiconnect/board.py b/freecad/kiconnect/board.py index a2e2bbc..cb89cd4 100644 --- a/freecad/kiconnect/board.py +++ b/freecad/kiconnect/board.py @@ -175,7 +175,8 @@ class BoardObject(BaseObject): Pulls outline from KiCAD PolygonBoard and saves points as Vectors ''' - if self.do_offset: + # bit of a quick hack to keep the board in one place, needs more testing + if self.do_offset and not self.feature.BoardOffset: bb = self.board_polygon.bounding_box() self.feature.BoardOffset.Base = (App.Vector(bb.pos.x, -bb.pos.y) + App.Vector(bb.size.x, -bb.size.y) / 2) / 1000000.0