Skip to content

Commit 9794d58

Browse files
committed
Fix Initial Errors
1 parent 914b84b commit 9794d58

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

lib/python/rs274/canonshaders.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ def draw_cube_outline(self, min_extents, max_extents, vertex_buffer, color_buffe
336336
cube_order = [0, 1, 2, 3, # Bottom Face
337337
0, 4, 5, 1, 5, # Face 1
338338
6, 2, 6, 7, 3, # Face 2
339-
7, 4 # Face 3
339+
7, 4, 0 # Face 3
340340
]
341341
# fmt: on
342342

@@ -511,10 +511,12 @@ def __init__(
511511
*args,
512512
**kwargs,
513513
):
514+
CanonShaders.__init__(self, lp=None, canon=None)
514515
QtWidgets.QOpenGLWidget.__init__(self)
515516
self.status = linuxcnc.stat()
516517
self.colors = colors
517-
CanonShaders.__init__(self, lp=None, canon=None)
518+
self.init_canon()
519+
518520
self.filename = None
519521

520522
# TODO: Can we use a singular matrix stack?

0 commit comments

Comments
 (0)