From 44abc2595a7d4488e3a0c3880eb434fe7315ae9c Mon Sep 17 00:00:00 2001 From: tcarisland Date: Fri, 9 Feb 2024 13:30:19 +0100 Subject: [PATCH] cleanup #22 --- .../Contents/Resources/advancedhatchfilter.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/AdvancedHatch.glyphsFilter/Contents/Resources/advancedhatchfilter.py b/AdvancedHatch.glyphsFilter/Contents/Resources/advancedhatchfilter.py index 8b4dcf1..3f11607 100644 --- a/AdvancedHatch.glyphsFilter/Contents/Resources/advancedhatchfilter.py +++ b/AdvancedHatch.glyphsFilter/Contents/Resources/advancedhatchfilter.py @@ -25,7 +25,7 @@ def hatchLayerWithOrigin(self, layer, theta, enableHatchStroke, hatchStroke, hat shapesLength = len(layer.shapes) hatchStart = int(hatchStroke[0]) hatchEnd = int(hatchStroke[1]) - i = 0; + i = 0 shapes = [] if enableHatchStroke: for myShape in layer.shapes: @@ -72,6 +72,7 @@ def intersectShapes(self, layer, originalShapes): layer.shapes = intersectedShapes return layer + @objc.python_method def intersect(self, shapeTwo, shapeOne): GSPathOperator = NSClassFromString("GSPathOperator") if hasattr(GSPathOperator, 'intersectPaths_with_error_') and callable(