mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 13:41:03 +00:00 
			
		
		
		
	Make Input Actions config not affect the editor
This commit is contained in:
		
							parent
							
								
									cee94b6119
								
							
						
					
					
						commit
						64fd75d91a
					
				
					 3 changed files with 67 additions and 1 deletions
				
			
		|  | @ -688,7 +688,10 @@ Error Main::setup(const char *execpath,int argc, char *argv[],bool p_second_phas | |||
| 
 | ||||
| #endif | ||||
| 
 | ||||
| 	input_map->load_from_globals(); | ||||
| 	if (editor) | ||||
| 		input_map->load_default(); //keys for editor
 | ||||
| 	else | ||||
| 		input_map->load_from_globals(); //keys for game
 | ||||
| 
 | ||||
| 	if (video_driver=="") // specified in engine.cfg
 | ||||
| 		video_driver=_GLOBAL_DEF("display/driver",Variant((const char*)OS::get_singleton()->get_video_driver_name(0))); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Juan Linietsky
						Juan Linietsky