Skip to content

Commit

Permalink
[macOS] Fix Maya navigation with ALT + mouse scroll
Browse files Browse the repository at this point in the history
Methods were being called with InputEventMouseMotion instead of InputEventPanGesture, and they were null.

Fixes godotengine#16181 on the master branch

(cherry picked from commit 394a782)
  • Loading branch information
asmaloney authored and akien-mga committed Jul 24, 2020
1 parent 3d420c9 commit cc8c618
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions editor/plugins/spatial_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1948,22 +1948,22 @@ void SpatialEditorViewport::_sinput(const Ref<InputEvent> &p_event) {

switch (nav_mode) {
case NAVIGATION_PAN: {
_nav_pan(m, pan_gesture->get_delta());
_nav_pan(pan_gesture, pan_gesture->get_delta());

} break;

case NAVIGATION_ZOOM: {
_nav_zoom(m, pan_gesture->get_delta());
_nav_zoom(pan_gesture, pan_gesture->get_delta());

} break;

case NAVIGATION_ORBIT: {
_nav_orbit(m, pan_gesture->get_delta());
_nav_orbit(pan_gesture, pan_gesture->get_delta());

} break;

case NAVIGATION_LOOK: {
_nav_look(m, pan_gesture->get_delta());
_nav_look(pan_gesture, pan_gesture->get_delta());

} break;

Expand Down

0 comments on commit cc8c618

Please sign in to comment.