Skip to content

Commit

Permalink
Using a try except caluse to support both methods
Browse files Browse the repository at this point in the history
  • Loading branch information
mattions committed Feb 8, 2012
1 parent b778709 commit 4ffeaab
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mayavi/core/mouse_pick_dispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,10 @@ def on_button_release(self, vtk_picker, event):
if self._mouse_no_mvt:
x, y = vtk_picker.GetEventPosition()
for picker in self._active_pickers.values():
picker.pick((x, y, 0), self.scene.scene.renderer)
try:
picker.pick((x, y, 0), self.scene.scene.renderer)
except TypeError:
picker.pick(x, y, 0, self.scene.scene.renderer)
self._mouse_no_mvt = 0


Expand Down

0 comments on commit 4ffeaab

Please sign in to comment.