summaryrefslogtreecommitdiff
path: root/gerbonara/layers.py
diff options
context:
space:
mode:
Diffstat (limited to 'gerbonara/layers.py')
-rw-r--r--gerbonara/layers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gerbonara/layers.py b/gerbonara/layers.py
index f4c8279..e8ce1a3 100644
--- a/gerbonara/layers.py
+++ b/gerbonara/layers.py
@@ -838,12 +838,12 @@ class LayerStack:
if use_use:
layer.dedup_apertures()
for obj in layer.objects:
- if hasattr(obj, 'aperture') and obj.polarity_dark and id(obj.aperture) not in use_map:
+ if hasattr(obj, 'aperture') and obj.polarity_dark and obj.aperture not in use_map:
children = [prim.to_svg(fg, bg, tag=tag)
for prim in obj.aperture.flash(0, 0, svg_unit, polarity_dark=True)]
use_id = f'a{len(use_defs)}'
use_defs.append(tag('g', children, id=use_id))
- use_map[id(obj.aperture)] = use_id
+ use_map[obj.aperture] = use_id
objects = []
for obj in layer.instance.svg_objects(svg_unit=svg_unit, fg=fg, bg=bg, aperture_map=use_map, tag=Tag):