Skip to content
Browse files

Merge pull request #33 from mounte/patch-1

Fixes an error when using 'f' to set focal-point in the mayavi gui.
  • Loading branch information...
2 parents 3fd3221 + 7062ea3 commit 9f44d5d1b0e49bae4a4f176650a8c52724a207ae @prabhuramachandran prabhuramachandran committed May 30, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 tvtk/pyface/picker.py
View
5 tvtk/pyface/picker.py
@@ -375,7 +375,10 @@ def pick_world(self, x, y):
self.worldpicker.pick((float(x), float(y), 0.0), self.renwin.renderer)
# Use the cell picker to get the data that needs to be probed.
- self.cellpicker.pick( (float(x), float(y), 0.0), self.renwin.renderer)
+ try:
+ self.cellpicker.pick( (float(x), float(y), 0.0), self.renwin.renderer)
+ except TypeError:
+ self.cellpicker.pick( float(x), float(y), 0.0, self.renwin.renderer)
wp = self.worldpicker
cp = self.cellpicker

0 comments on commit 9f44d5d

Please sign in to comment.
Something went wrong with that request. Please try again.