Debugger: pad with zeroes timing values

This commit is contained in:
Serhii Snitsaruk 2023-04-14 13:42:17 +02:00
parent 077c9553b5
commit 8822c9d5db
1 changed files with 1 additions and 1 deletions

View File

@ -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"));