Просмотр исходного кода

Fix float value used for MONITOR_TYPE_QUANTITY

yahkr 10 месяцев назад
Родитель
Сommit
9625fdc1d7
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      editor/debugger/editor_performance_profiler.cpp

+ 3 - 0
editor/debugger/editor_performance_profiler.cpp

@@ -81,6 +81,9 @@ void EditorPerformanceProfiler::Monitor::reset() {
 
 String EditorPerformanceProfiler::_create_label(float p_value, Performance::MonitorType p_type) {
 	switch (p_type) {
+		case Performance::MONITOR_TYPE_QUANTITY: {
+			return TS->format_number(itos(p_value));
+		}
 		case Performance::MONITOR_TYPE_MEMORY: {
 			return String::humanize_size(p_value);
 		}