Skip to content

Commit

Permalink
Add project option to allow boot splash disabling at editor startup
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaosus committed Oct 12, 2018
1 parent 451e5fd commit a636636
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1138,7 +1138,7 @@ Error Main::setup2(Thread::ID p_main_tid_override) {
}

Color boot_bg_color = GLOBAL_DEF("application/boot_splash/bg_color", boot_splash_bg_color);
if (boot_logo.is_valid()) {
if (boot_logo.is_valid() && ((!Engine::get_singleton()->is_editor_hint()) || (Engine::get_singleton()->is_editor_hint() && GLOBAL_DEF("application/boot_splash/use_at_editor_startup", true)))) {
OS::get_singleton()->_msec_splash = OS::get_singleton()->get_ticks_msec();
VisualServer::get_singleton()->set_boot_image(boot_logo, boot_bg_color, boot_logo_scale);

Expand Down

0 comments on commit a636636

Please sign in to comment.