Browse Source

- Gerber Editor: a disabled/enabled sequence for the VisPy cursor on Gerber edit make the graphics better

Marius Stanciu 6 years ago
parent
commit
0fdd2e4f7c
2 changed files with 8 additions and 2 deletions
  1. 1 0
      README.md
  2. 7 2
      flatcamEditors/FlatCAMGrbEditor.py

+ 1 - 0
README.md

@@ -12,6 +12,7 @@ CAD program, and create G-Code for Isolation routing.
 14.04.2019
 
 - Gerber Editor: Remade the processing of 'clear_geometry' (geometry generated by polygons made with Gerber LPC command) to work if more than one such polygon exists
+- Gerber Editor: a disabled/enabled sequence for the VisPy cursor on Gerber edit make the graphics better
 
 13.04.2019
 

+ 7 - 2
flatcamEditors/FlatCAMGrbEditor.py

@@ -2572,10 +2572,15 @@ class FlatCAMGrbEditor(QtCore.QObject):
                 self.plot_thread.stop()
 
                 self.set_ui()
-                # now that we hava data, create the GUI interface and add it to the Tool Tab
+                # now that we have data, create the GUI interface and add it to the Tool Tab
                 self.build_ui()
-
                 self.plot_all()
+
+                # HACK: enabling/disabling the cursor seams to somehow update the shapes making them more 'solid'
+                # - perhaps is a bug in VisPy implementation
+                self.app.app_cursor.enabled = False
+                self.app.app_cursor.enabled = True
+
                 log.debug("FlatCAMGrbEditor --> delayed_plot finished")
         except Exception:
             traceback.print_exc()