- in Excellon Editor and Geometry Editor solved some Shapely 2.0 deprecation warnings

- in Excellon Editor made sure that the tool diameter is always updated before adding a new drill (or drill array)
- changing units is not possible while in Editors
- changing units outside the Preferences will make no permanent changes
- deleting all shapes from the shapes collection (OpenGl graphics) will reset also the index in the collection data dict
This commit is contained in:
Marius Stanciu
2021-09-26 21:21:49 +03:00
committed by Marius
parent 33f5749a7f
commit 0cee20a6d9
10 changed files with 202 additions and 195 deletions

View File

@@ -9,6 +9,7 @@
# ##########################################################
# File modified by: Marius Stanciu #
# ##########################################################
from PyQt6 import QtGui
from appEditors.AppTextEditor import AppTextEditor
from appObjects.FlatCAMObj import *

View File

@@ -943,7 +943,7 @@ class GerberObject(FlatCAMObj, Gerber):
plot_geometry = geometry.geoms if isinstance(geometry, (MultiPolygon, MultiLineString)) else geometry
for g in plot_geometry:
if isinstance(g, (Polygon, LineString)):
if isinstance(g, (Polygon, LineString, LinearRing)):
self.add_shape(shape=g, color=used_color, face_color=used_face_color, visible=visible)
self.shapes.redraw(