Skip to content

Commit

Permalink
Fixes an error when using 'f' to set focal-point in the mayavi gui.
Browse files Browse the repository at this point in the history
See: #21
  • Loading branch information
mounte committed May 30, 2012
1 parent 3fd3221 commit 7062ea3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tvtk/pyface/picker.py
Expand Up @@ -375,7 +375,10 @@ def pick_world(self, x, y):
self.worldpicker.pick((float(x), float(y), 0.0), self.renwin.renderer) 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. # 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 wp = self.worldpicker
cp = self.cellpicker cp = self.cellpicker
Expand Down

0 comments on commit 7062ea3

Please sign in to comment.