From af4fb2668f74c04155613aad8ced3b7400231e6d Mon Sep 17 00:00:00 2001 From: Nitsan-Suron Date: Wed, 24 May 2023 07:52:30 +0000 Subject: [PATCH] fixed invert_polarity --- src/gerbonara/rs274x.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gerbonara/rs274x.py b/src/gerbonara/rs274x.py index 5477916..144cba5 100644 --- a/src/gerbonara/rs274x.py +++ b/src/gerbonara/rs274x.py @@ -375,7 +375,7 @@ class GerberFile(CamFile): def invert_polarity(self): """ Invert the polarity (color) of each object in this file. """ for obj in self.objects: - obj.polarity_dark = not p.polarity_dark + obj.polarity_dark = not obj.polarity_dark def convex_hull(self, tol=0.01, unit=None): unit = unit or self.unit