mirror of
https://github.com/godotengine/godot.git
synced 2025-10-27 19:54:27 +00:00
Reenable node name case setting + code cleanups
The method _generate_serial_child_name is indeed called relatively often in editor mode, but that commented out code chunk hardly adds to its slowness (and with the default setting, not at all). Also did various related code cleanups and simplifications.
This commit is contained in:
parent
f392b340ff
commit
f19fd7a4c1
4 changed files with 10 additions and 32 deletions
|
|
@ -711,7 +711,7 @@ Error Main::setup(const char *execpath,int argc, char *argv[],bool p_second_phas
|
|||
input_map->load_from_globals(); //keys for game
|
||||
|
||||
if (video_driver=="") // specified in engine.cfg
|
||||
video_driver=_GLOBAL_DEF("display/driver/name",Variant((const char*)OS::get_singleton()->get_video_driver_name(0)));
|
||||
video_driver=GLOBAL_DEF("display/driver/name",Variant((const char*)OS::get_singleton()->get_video_driver_name(0)));
|
||||
|
||||
if (!force_res && use_custom_res && globals->has("display/window/width"))
|
||||
video_mode.width=globals->get("display/window/width");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue