From 0fdd2e4f7c9bd156c5381026717e155c88be7251 Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Sat, 13 Apr 2019 23:47:02 +0300 Subject: [PATCH] - Gerber Editor: a disabled/enabled sequence for the VisPy cursor on Gerber edit make the graphics better --- README.md | 1 + flatcamEditors/FlatCAMGrbEditor.py | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0787fea9..778459f5 100644 --- a/README.md +++ b/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 diff --git a/flatcamEditors/FlatCAMGrbEditor.py b/flatcamEditors/FlatCAMGrbEditor.py index 7ec59756..6e384223 100644 --- a/flatcamEditors/FlatCAMGrbEditor.py +++ b/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()