Make Input Actions config not affect the editor

This commit is contained in:
Juan Linietsky 2016-06-05 01:19:42 -03:00
parent cee94b6119
commit 64fd75d91a
3 changed files with 67 additions and 1 deletions

View file

@ -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)));