Commit 22ab9aa3 authored by sumpfralle's avatar sumpfralle

added a keybinding ("p") to switch between perspective and orthogonal view


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@658 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 19fd8a55
...@@ -363,13 +363,15 @@ class ModelViewWindowGL: ...@@ -363,13 +363,15 @@ class ModelViewWindowGL:
index = '1234567'.index(get_char(keyval)) index = '1234567'.index(get_char(keyval))
self.rotate_view(view=VIEWS[names[index]]) self.rotate_view(view=VIEWS[names[index]])
self._paint_ignore_busy() self._paint_ignore_busy()
elif get_char(keyval) in ('i', 'm', 's'): elif get_char(keyval) in ('i', 'm', 's', 'p'):
if (chr(keyval) == 'i'): if (chr(keyval) == 'i'):
key = "view_light" key = "view_light"
elif (chr(keyval) == 'm'): elif (chr(keyval) == 'm'):
key = "view_polygon" key = "view_polygon"
elif (chr(keyval) == 's'): elif (chr(keyval) == 's'):
key = "view_shadow" key = "view_shadow"
elif (chr(keyval) == 'p'):
key = "view_perspective"
else: else:
key = None key = None
# toggle setting # toggle setting
......
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