Преглед изворни кода

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

Marius Stanciu пре 6 година
родитељ
комит
0fdd2e4f7c
2 измењених фајлова са 8 додато и 2 уклоњено
  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
 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: 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
 13.04.2019
 
 

+ 7 - 2
flatcamEditors/FlatCAMGrbEditor.py

@@ -2572,10 +2572,15 @@ class FlatCAMGrbEditor(QtCore.QObject):
                 self.plot_thread.stop()
                 self.plot_thread.stop()
 
 
                 self.set_ui()
                 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.build_ui()
-
                 self.plot_all()
                 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")
                 log.debug("FlatCAMGrbEditor --> delayed_plot finished")
         except Exception:
         except Exception:
             traceback.print_exc()
             traceback.print_exc()