mirror of
https://github.com/Denvi/FlatCAM.git
synced 2026-02-19 17:21:39 +01:00
#211 "Origin lines do not cross the origin at startup" fix
(cherry picked from commit f7f41b5)
This commit is contained in:
@@ -37,15 +37,16 @@ class VisPyCanvas(scene.SceneCanvas):
|
||||
view = grid.add_view(row=1, col=1, border_color='black', bgcolor='white')
|
||||
view.camera = Camera(aspect=1)
|
||||
|
||||
# Following function was removed from 'prepare_draw()' of 'Grid' class by patch,
|
||||
# it is necessary to call manually
|
||||
grid._update_child_widget_dim()
|
||||
|
||||
grid1 = scene.GridLines(parent=view.scene, color='gray')
|
||||
grid1.set_gl_state(depth_test=False)
|
||||
|
||||
xaxis.link_view(view)
|
||||
yaxis.link_view(view)
|
||||
|
||||
# shapes = scene.Line(parent=view.scene)
|
||||
# view.add(shapes)
|
||||
|
||||
self.grid = grid1
|
||||
self.view = view
|
||||
self.freeze()
|
||||
|
||||
Reference in New Issue
Block a user