Commit dfb70f9f authored by Guillaume Seguin's avatar Guillaume Seguin

WIP #580: Harmonize platers controls

parent ca5a690c
...@@ -93,7 +93,7 @@ class Plater(wx.Frame): ...@@ -93,7 +93,7 @@ class Plater(wx.Frame):
if self.initpos is None: if self.initpos is None:
self.initpos = event.GetPositionTuple() self.initpos = event.GetPositionTuple()
else: else:
if not event.ShiftDown(): if event.ShiftDown():
p1 = self.initpos p1 = self.initpos
p2 = event.GetPositionTuple() p2 = event.GetPositionTuple()
x1, y1, _ = self.mouse_to_3d(p1[0], p1[1]) x1, y1, _ = self.mouse_to_3d(p1[0], p1[1])
...@@ -106,7 +106,7 @@ class Plater(wx.Frame): ...@@ -106,7 +106,7 @@ class Plater(wx.Frame):
# Patch handle_wheel on the fly # Patch handle_wheel on the fly
if hasattr(viewer, "handle_wheel"): if hasattr(viewer, "handle_wheel"):
def handle_wheel(self, event, orig_handler): def handle_wheel(self, event, orig_handler):
if not event.ShiftDown(): if event.ShiftDown():
delta = event.GetWheelRotation() delta = event.GetWheelRotation()
angle = 10 angle = 10
if delta > 0: if delta > 0:
......
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