Fix KP5 toggle perspective shortcut, fixes #2035

This commit is contained in:
Juan Linietsky 2016-01-04 00:17:28 -03:00
parent f8d08baec0
commit 30d4a50b42

View file

@ -1617,6 +1617,8 @@ void SpatialEditorViewport::_sinput(const InputEvent &p_event) {
case InputEvent::KEY: {
const InputEventKey &k = p_event.key;
if (!k.pressed)
break;
switch(k.scancode) {
case KEY_S: {
@ -1677,7 +1679,8 @@ void SpatialEditorViewport::_sinput(const InputEvent &p_event) {
} break;
case KEY_KP_5: {
orthogonal = !orthogonal;
//orthogonal = !orthogonal;
_menu_option(orthogonal?VIEW_PERSPECTIVE:VIEW_ORTHOGONAL);
_update_name();