From b5f8c1a53b30c459a5fe9ce649b3293a68c99407 Mon Sep 17 00:00:00 2001 From: Poommetee Ketson Date: Mon, 19 Feb 2018 21:26:05 +0700 Subject: [PATCH] Fix timer second not zero padded when < 10 Also RTR "Time Left:" (cherry picked from commit d2e3607fa069924945b1eabed6ebfe8c5a6a0ecc) --- scene/3d/baked_lightmap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/3d/baked_lightmap.cpp b/scene/3d/baked_lightmap.cpp index fa4e6492a18..204aaef7ecd 100644 --- a/scene/3d/baked_lightmap.cpp +++ b/scene/3d/baked_lightmap.cpp @@ -316,7 +316,7 @@ bool BakedLightmap::_bake_time(void *ud, float p_secs, float p_progress) { int mins_left = p_secs / 60; int secs_left = Math::fmod(p_secs, 60.0f); int percent = p_progress * 100; - bool abort = bake_step_function(btd->pass + percent, btd->text + " " + itos(percent) + "% (Time Left: " + itos(mins_left) + ":" + itos(secs_left) + "s)"); + bool abort = bake_step_function(btd->pass + percent, btd->text + " " + vformat(RTR("%d%%"), percent) + " " + vformat(RTR("(Time Left: %d:%02d s)"), mins_left, secs_left)); btd->last_step = time; if (abort) return true;