From 660f69cfc5df7f6b02abdf1e527a65a77b31a3f6 Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Tue, 10 Dec 2019 17:24:28 +0200 Subject: [PATCH] - for OpenGL graphic mode added a fit_view() execution on canvas initialization --- README.md | 3 ++- flatcamGUI/PlotCanvas.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index bb3b7b46..6e5d96b5 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,8 @@ CAD program, and create G-Code for Isolation routing. - in Gerber isolation, when selection mode is checked, now area selection works too - in CNCJob UI, now the CNCJob objects made out of Excellon objects will display their CNC tools (drill bits) - fixed a cummulative error when using the Tool Offset for Excellon objects -- added the dipaly of the real depth of cut (cut z + offset_z) for CNC tools made out of an Excellon object +- added the display of the real depth of cut (cut z + offset_z) for CNC tools made out of an Excellon object +- for OpenGL graphic mode added a fit_view() execution on canvas initialization 9.12.2019 diff --git a/flatcamGUI/PlotCanvas.py b/flatcamGUI/PlotCanvas.py index 15495dab..99cb1472 100644 --- a/flatcamGUI/PlotCanvas.py +++ b/flatcamGUI/PlotCanvas.py @@ -156,7 +156,7 @@ class PlotCanvas(QtCore.QObject, VisPyCanvas): self.big_cursor = None # Keep VisPy canvas happy by letting it be "frozen" again. self.freeze() - + self.fit_view() self.graph_event_connect('mouse_wheel', self.on_mouse_scroll) def draw_workspace(self, workspace_size):