- Excellon UI in Legacy Mode (2D): fixed the Solid checkbox functionality
This commit is contained in:
@@ -13,6 +13,7 @@ CHANGELOG for FlatCAM beta
|
|||||||
- the Path optimization options for Excellon and Geometry objects are now available depending on the OS platform used (32bit vs 64bit)
|
- the Path optimization options for Excellon and Geometry objects are now available depending on the OS platform used (32bit vs 64bit)
|
||||||
- fixed MultiColor checkbox in Excellon Object to work in Legacy Mode (2D)
|
- fixed MultiColor checkbox in Excellon Object to work in Legacy Mode (2D)
|
||||||
- modified the visibility change in Excellon UI to no longer do plot() when doing visibility toggle for one of the tools but only a visibility change in the shapes properties
|
- modified the visibility change in Excellon UI to no longer do plot() when doing visibility toggle for one of the tools but only a visibility change in the shapes properties
|
||||||
|
- Excellon UI in Legacy Mode (2D): fixed the Solid checkbox functionality
|
||||||
|
|
||||||
20.07.2020
|
20.07.2020
|
||||||
|
|
||||||
|
|||||||
@@ -1361,11 +1361,15 @@ class ShapeCollectionLegacy:
|
|||||||
log.debug("ShapeCollectionLegacy.redraw() excellon poly --> %s" % str(e))
|
log.debug("ShapeCollectionLegacy.redraw() excellon poly --> %s" % str(e))
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
x, y = local_shapes[element]['shape'].exterior.coords.xy
|
if isinstance(local_shapes[element]['shape'], Polygon):
|
||||||
self.axes.plot(x, y, 'r-', linewidth=local_shapes[element]['linewidth'])
|
x, y = local_shapes[element]['shape'].exterior.coords.xy
|
||||||
for ints in local_shapes[element]['shape'].interiors:
|
self.axes.plot(x, y, 'r-', linewidth=local_shapes[element]['linewidth'])
|
||||||
x, y = ints.coords.xy
|
for ints in local_shapes[element]['shape'].interiors:
|
||||||
self.axes.plot(x, y, 'o-', linewidth=local_shapes[element]['linewidth'])
|
x, y = ints.coords.xy
|
||||||
|
self.axes.plot(x, y, 'o-', linewidth=local_shapes[element]['linewidth'])
|
||||||
|
elif isinstance(local_shapes[element]['shape'], LinearRing):
|
||||||
|
x, y = local_shapes[element]['shape'].coords.xy
|
||||||
|
self.axes.plot(x, y, 'r-', linewidth=local_shapes[element]['linewidth'])
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
log.debug("ShapeCollectionLegacy.redraw() excellon no poly --> %s" % str(e))
|
log.debug("ShapeCollectionLegacy.redraw() excellon no poly --> %s" % str(e))
|
||||||
elif obj_type == 'geometry':
|
elif obj_type == 'geometry':
|
||||||
|
|||||||
Reference in New Issue
Block a user