Parcourir la source

Fix float value used for MONITOR_TYPE_QUANTITY

yahkr il y a 10 mois
Parent
commit
9625fdc1d7
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  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);
 		}