mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 21:51:22 +00:00 
			
		
		
		
	Merge pull request #57000 from KoBeWi/UNLIMITED_PANNING
This commit is contained in:
		
						commit
						e363f404a5
					
				
					 21 changed files with 263 additions and 244 deletions
				
			
		|  | @ -42,6 +42,7 @@ | |||
| #include "editor/editor_node.h" | ||||
| #include "editor/editor_resource_preview.h" | ||||
| #include "editor/editor_scale.h" | ||||
| #include "scene/gui/view_panner.h" | ||||
| #include "scene/main/window.h" | ||||
| 
 | ||||
| #ifdef TOOLS_ENABLED | ||||
|  | @ -3912,7 +3913,8 @@ void VisualScriptEditor::_notification(int p_what) { | |||
| 	switch (p_what) { | ||||
| 		case NOTIFICATION_ENTER_TREE: | ||||
| 		case EditorSettings::NOTIFICATION_EDITOR_SETTINGS_CHANGED: { | ||||
| 			graph->set_panning_scheme((GraphEdit::PanningScheme)EDITOR_GET("interface/editors/sub_editor_panning_scheme").operator int()); | ||||
| 			graph->get_panner()->setup((ViewPanner::ControlScheme)EDITOR_GET("editors/panning/sub_editor_panning_scheme").operator int(), ED_GET_SHORTCUT("canvas_item_editor/pan_view"), bool(EditorSettings::get_singleton()->get("editors/panning/simple_panning"))); | ||||
| 			graph->set_warped_panning(bool(EditorSettings::get_singleton()->get("editors/panning/warped_mouse_panning"))); | ||||
| 		} break; | ||||
| 
 | ||||
| 		case NOTIFICATION_READY: { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Rémi Verschelde
						Rémi Verschelde