- refactored the imports in the Plugins, moved almost all imports in the AppTool file
- fixed a number of issues, mostly leftovers from moving the UI of a Plugin in its own class - fixed some bugs in the Punch Gerber plugin - fixed some bugs where the 'pool' parameter was not passed when creating shapes collections (in 3D graphic mode); I wonder how it worked until now - added a new feature in the Isolation Plugin: now for all the isolation Geometry objects this plugin can do a supplementary simplification of the geometry using the tolerance parameter defined in the General Parameters. This should lead to a reduced number of tool lifts when doing corners
This commit is contained in:
committed by
Marius Stanciu
parent
e1824a09f7
commit
ada48269a9
@@ -1158,12 +1158,12 @@ class App(QtCore.QObject):
|
||||
# VisPy visuals
|
||||
if self.use_3d_engine:
|
||||
try:
|
||||
self.tool_shapes = ShapeCollection(parent=self.plotcanvas.view.scene, layers=1)
|
||||
self.tool_shapes = ShapeCollection(parent=self.plotcanvas.view.scene, layers=1, pool=self.pool)
|
||||
except AttributeError:
|
||||
self.tool_shapes = None
|
||||
|
||||
# Storage for Hover Shapes
|
||||
self.hover_shapes = ShapeCollection(parent=self.plotcanvas.view.scene, layers=1)
|
||||
self.hover_shapes = ShapeCollection(parent=self.plotcanvas.view.scene, layers=1, pool=self.pool)
|
||||
else:
|
||||
from appGUI.PlotCanvasLegacy import ShapeCollectionLegacy
|
||||
self.tool_shapes = ShapeCollectionLegacy(obj=self, app=self, name="tool")
|
||||
@@ -5133,7 +5133,7 @@ class App(QtCore.QObject):
|
||||
_("Please enter a tool diameter with non-zero value, in Float format."))
|
||||
return
|
||||
try:
|
||||
self.collection.get_active().on_tool_add(clicked_state=False, dia=float(val))
|
||||
self.collection.get_active().on_tool_add(dia=float(val))
|
||||
except Exception as tadd_err:
|
||||
self.log.debug("App.on_tool_add_keypress() --> %s" % str(tadd_err))
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user