Sfoglia il codice sorgente

- 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.

Marius Stanciu 7 anni fa
parent
commit
eece2fbe56
2 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. 3 1
      FlatCAMEditor.py
  2. 1 0
      README.md

+ 3 - 1
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):

+ 1 - 0
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