Explorar o código

- for OpenGL graphic mode added a fit_view() execution on canvas initialization

Marius Stanciu %!s(int64=6) %!d(string=hai) anos
pai
achega
660f69cfc5
Modificáronse 2 ficheiros con 3 adicións e 2 borrados
  1. 2 1
      README.md
  2. 1 1
      flatcamGUI/PlotCanvas.py

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

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