From eece2fbe56b0ab7fe29e658402a57cc33ccd7223 Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Mon, 18 Feb 2019 04:20:36 +0200 Subject: [PATCH] - in Geometry Editor by selecting a shape with a selection shape, that object was added multiple times (one per each selection) to the selected list, which is not intended. Bug fixed. --- FlatCAMEditor.py | 4 +++- README.md | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/FlatCAMEditor.py b/FlatCAMEditor.py index bf9725b6..a3b88647 100644 --- a/FlatCAMEditor.py +++ b/FlatCAMEditor.py @@ -1220,6 +1220,7 @@ class TransformEditorTool(FlatCAMTool): for sha in shape_list: self.draw_app.add_shape(sha) + shape_list[:] = [] self.draw_app.delete_selected() # self.draw_app.complete = True self.draw_app.replot() @@ -3860,7 +3861,8 @@ class FlatCAMGeoEditor(QtCore.QObject): # add the object to the selected shapes self.selected.append(obj) else: - self.selected.append(obj) + if obj not in self.selected: + self.selected.append(obj) self.replot() def draw_utility_geometry(self, geo): diff --git a/README.md b/README.md index d3ca58dc..9707b12a 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ CAD program, and create G-Code for Isolation routing. - when the Tools in Geometry Editor are activated, the notebook with the Tool Tab will be unhidden. After execution the notebook will hide again for the Buffer Tool. - changed the font in Tool names - added in Geometry Editor a new Tool: Transformation Tool. It still has some bugs, though ... +- in Geometry Editor by selecting a shape with a selection shape, that object was added multiple times (one per each selection) to the selected list, which is not intended. Bug fixed. 17.02.2019