Procházet zdrojové kódy

[macOS] Fix Maya navigation with ALT + mouse scroll

Methods were being called with InputEventMouseMotion instead of InputEventPanGesture, and they were null.

Fixes godotengine/godot#16181 on the master branch
Andy Maloney před 5 roky
rodič
revize
394a7826be
1 změnil soubory, kde provedl 4 přidání a 4 odebrání
  1. 4 4
      editor/plugins/node_3d_editor_plugin.cpp

+ 4 - 4
editor/plugins/node_3d_editor_plugin.cpp

@@ -1928,22 +1928,22 @@ void Node3DEditorViewport::_sinput(const Ref<InputEvent> &p_event) {
 
 
 		switch (nav_mode) {
 		switch (nav_mode) {
 			case NAVIGATION_PAN: {
 			case NAVIGATION_PAN: {
-				_nav_pan(m, pan_gesture->get_delta());
+				_nav_pan(pan_gesture, pan_gesture->get_delta());
 
 
 			} break;
 			} break;
 
 
 			case NAVIGATION_ZOOM: {
 			case NAVIGATION_ZOOM: {
-				_nav_zoom(m, pan_gesture->get_delta());
+				_nav_zoom(pan_gesture, pan_gesture->get_delta());
 
 
 			} break;
 			} break;
 
 
 			case NAVIGATION_ORBIT: {
 			case NAVIGATION_ORBIT: {
-				_nav_orbit(m, pan_gesture->get_delta());
+				_nav_orbit(pan_gesture, pan_gesture->get_delta());
 
 
 			} break;
 			} break;
 
 
 			case NAVIGATION_LOOK: {
 			case NAVIGATION_LOOK: {
-				_nav_look(m, pan_gesture->get_delta());
+				_nav_look(pan_gesture, pan_gesture->get_delta());
 
 
 			} break;
 			} break;