Commits

saar drimer committed 0751eab

fixed bug of unwanted rounded corner increments

  • Participants
  • Parent commits 9b76471

Comments (0)

Files changed (1)

File utils/footprint.py

                                 shape_width = shape.get('width')
                                 shape_height = shape.get('height')
                                 if shape_radii is not None:
+                                    shape_radii_silkscreen = {}
                                     for corner in shape_radii:
                                         if shape_radii[corner] != 0:
-                                            shape_radii[corner] = shape_radii[corner] + shape_soldermask_buffer/2
+                                            shape_radii_silkscreen[corner] = shape_radii[corner] + shape_soldermask_buffer/2
+                                else:
+                                    shape_radii_silkscreen = None
+
                                 soldermask_path = svg.width_and_height_to_path(shape_width + shape_soldermask_buffer, 
                                                                                shape_height + shape_soldermask_buffer,
-                                                                               shape_radii)
+                                                                               shape_radii_silkscreen)
+                              
+
                                 soldermask_rotate = -pin_rotate
                             else:
                                 shape_soldermask_scale_factor = soldermask_scale_factor