Commit b8f549b6 authored by Guillaume Seguin's avatar Guillaume Seguin

Allow faster layer switching in gcview by holding Control

parent a3061dad
...@@ -174,10 +174,10 @@ class GcodeViewPanel(wxGLPanel): ...@@ -174,10 +174,10 @@ class GcodeViewPanel(wxGLPanel):
if event.ShiftDown(): if event.ShiftDown():
if not self.parent.model: if not self.parent.model:
return return
if delta > 0: count = 1 if not event.ControlDown() else 10
self.layerup() for i in range(count):
else: if delta > 0: self.layerup()
self.layerdown() else: self.layerdown()
return return
x, y = event.GetPositionTuple() x, y = event.GetPositionTuple()
x, y, _ = self.mouse_to_3d(x, y) x, y, _ = self.mouse_to_3d(x, y)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment