From 34d65a20775f8c1131913d2edd7159f086e8f228 Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Mon, 2 May 2022 15:29:44 +0300 Subject: [PATCH] - in Geometry Editor fixed an angle issue in the Circle sub-tool - in Geometry Editor made sure that when using the Move sub-tool if there is no shape selected, when clicking to get selection that point is also used as reference for the Move command --- CHANGELOG.md | 2 ++ appEditors/AppGeoEditor.py | 1 + appEditors/geo_plugins/GeoCirclePlugin.py | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d99c6b03..8b6501a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,8 @@ CHANGELOG for FlatCAM Evo beta - in Excellon Editor, Copy sub-tool, added UI and ability to copy as array - fixed an issue in Geometry Editor, Copy sub-tool where when the geometry copied numbers over the set limit then the copy as array is incorrect +- in Geometry Editor fixed an angle issue in the Circle sub-tool +- in Geometry Editor made sure that when using the Move sub-tool if there is no shape selected, when clicking to get selection that point is also used as reference for the Move command 1.05.2022 diff --git a/appEditors/AppGeoEditor.py b/appEditors/AppGeoEditor.py index 7b17442e..eec23ce5 100644 --- a/appEditors/AppGeoEditor.py +++ b/appEditors/AppGeoEditor.py @@ -1950,6 +1950,7 @@ class FCMove(FCShapeTool): self.selection_shape = self.selection_bbox() # self.draw_app.plot_all() self.draw_app.app.inform.emit(_("Click on reference location ...")) + self.set_origin(point) return if self.origin is None: diff --git a/appEditors/geo_plugins/GeoCirclePlugin.py b/appEditors/geo_plugins/GeoCirclePlugin.py index bf45b5aa..60cf6976 100644 --- a/appEditors/geo_plugins/GeoCirclePlugin.py +++ b/appEditors/geo_plugins/GeoCirclePlugin.py @@ -248,7 +248,7 @@ class CircleEditorUI: self.angle_lbl = FCLabel('%s:' % _("Angle")) self.angle_entry = FCDoubleSpinner() self.angle_entry.set_precision(self.decimals) - self.angle_entry.set_range(0.0000, 360.0000) + self.angle_entry.set_range(-360.0000, 360.0000) rad_grid.addWidget(self.angle_lbl, 2, 0) rad_grid.addWidget(self.angle_entry, 2, 1)