summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-02-19 17:14:12 +0100
committerGitHub <noreply@github.com>2018-02-19 17:14:12 +0100
commit52f45122aecae2847fe6b653db06e0a0bae450d1 (patch)
tree2dc032b1f311b1ba5d0b45acf2bb589159e25b98
parent4faf81977dc7cf9d160f20151e06cfe5b74454cc (diff)
parentd2e3607fa069924945b1eabed6ebfe8c5a6a0ecc (diff)
Merge pull request #16822 from Noshyaar/timefmt
Fix timer second not zero padded when < 10
-rw-r--r--scene/3d/baked_lightmap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/3d/baked_lightmap.cpp b/scene/3d/baked_lightmap.cpp
index fa4e6492a1..204aaef7ec 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;