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):
if event.ShiftDown():
if not self.parent.model:
return
if delta > 0:
self.layerup()
else:
self.layerdown()
count = 1 if not event.ControlDown() else 10
for i in range(count):
if delta > 0: self.layerup()
else: self.layerdown()
return
x, y = event.GetPositionTuple()
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