Fix KP5 toggle perspective shortcut, fixes #2035
This commit is contained in:
parent
f8d08baec0
commit
30d4a50b42
1 changed files with 4 additions and 1 deletions
|
@ -1617,6 +1617,8 @@ void SpatialEditorViewport::_sinput(const InputEvent &p_event) {
|
||||||
case InputEvent::KEY: {
|
case InputEvent::KEY: {
|
||||||
|
|
||||||
const InputEventKey &k = p_event.key;
|
const InputEventKey &k = p_event.key;
|
||||||
|
if (!k.pressed)
|
||||||
|
break;
|
||||||
switch(k.scancode) {
|
switch(k.scancode) {
|
||||||
|
|
||||||
case KEY_S: {
|
case KEY_S: {
|
||||||
|
@ -1677,7 +1679,8 @@ void SpatialEditorViewport::_sinput(const InputEvent &p_event) {
|
||||||
} break;
|
} break;
|
||||||
case KEY_KP_5: {
|
case KEY_KP_5: {
|
||||||
|
|
||||||
orthogonal = !orthogonal;
|
|
||||||
|
//orthogonal = !orthogonal;
|
||||||
_menu_option(orthogonal?VIEW_PERSPECTIVE:VIEW_ORTHOGONAL);
|
_menu_option(orthogonal?VIEW_PERSPECTIVE:VIEW_ORTHOGONAL);
|
||||||
_update_name();
|
_update_name();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue