Merge pull request #46978 from jmb462/fix-hardcoded-maya-style-pan-key-modifier

Fix hardcoded Maya style navigation pan key modifier (Fix #46973)
This commit is contained in:
Rémi Verschelde 2021-03-13 22:03:40 +01:00 committed by GitHub
commit 223a06955e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1841,9 +1841,8 @@ void Node3DEditorViewport::_sinput(const Ref<InputEvent> &p_event) {
}
} else if (m->get_button_mask() & BUTTON_MASK_MIDDLE) {
const int mod = _get_key_modifier(m);
if (nav_scheme == NAVIGATION_GODOT) {
const int mod = _get_key_modifier(m);
if (mod == _get_key_modifier_setting("editors/3d/navigation/pan_modifier")) {
nav_mode = NAVIGATION_PAN;
} else if (mod == _get_key_modifier_setting("editors/3d/navigation/zoom_modifier")) {
@ -1854,7 +1853,7 @@ void Node3DEditorViewport::_sinput(const Ref<InputEvent> &p_event) {
}
} else if (nav_scheme == NAVIGATION_MAYA) {
if (m->get_alt()) {
if (mod == _get_key_modifier_setting("editors/3d/navigation/pan_modifier")) {
nav_mode = NAVIGATION_PAN;
}
}