From 8822c9d5dbd47516f37ec9dda332a61992806348 Mon Sep 17 00:00:00 2001 From: Serhii Snitsaruk Date: Fri, 14 Apr 2023 13:42:17 +0200 Subject: [PATCH] Debugger: pad with zeroes timing values --- debugger/behavior_tree_view.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debugger/behavior_tree_view.cpp b/debugger/behavior_tree_view.cpp index 48c9fa8..0a0675b 100644 --- a/debugger/behavior_tree_view.cpp +++ b/debugger/behavior_tree_view.cpp @@ -70,7 +70,7 @@ void BehaviorTreeView::update_tree(const BehaviorTreeData &p_data) { item->set_metadata(0, task_data.id); item->set_text(0, task_data.name); item->set_icon(0, LimboUtility::get_singleton()->get_task_icon(task_data.type_name)); - item->set_text(2, rtos(Math::snapped(task_data.elapsed_time, 0.01))); + item->set_text(2, rtos(Math::snapped(task_data.elapsed_time, 0.01)).pad_decimals(2)); if (task_data.status == BTTask::SUCCESS) { item->set_custom_draw(0, this, SNAME("_draw_success_status"));