From 371611e6f4349cd62fcecaaec9662b9cbe5bdbef Mon Sep 17 00:00:00 2001 From: Benny Megidish Date: Tue, 27 Feb 2024 12:16:17 +0200 Subject: [PATCH] fix: translation footprint name --- plugins/process.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/process.py b/plugins/process.py index cc247fc..9d6a83a 100644 --- a/plugins/process.py +++ b/plugins/process.py @@ -163,7 +163,7 @@ class ProcessManager: mid_x = (self._get_footprint_position(footprint)[0] - self.board.GetDesignSettings().GetAuxOrigin()[0]) / 1000000.0 mid_y = (self._get_footprint_position(footprint)[1] - self.board.GetDesignSettings().GetAuxOrigin()[1]) * -1.0 / 1000000.0 rotation = footprint.GetOrientation().AsDegrees() if hasattr(footprint.GetOrientation(), 'AsDegrees') else footprint.GetOrientation() / 10.0 - rotation_offset_db = self._get_rotation_from_db(footprint) # internal database offset + rotation_offset_db = self._get_rotation_from_db(footprint_name) # internal database offset rotation_offset_manual = self._get_rotation_offset_from_footprint(footprint) # explicated offset by the designer # position offset needs to take rotation into account