Fix: UI: make statistics for Objects display 0 instead of (null)

Display "0" instead of "(null)" for object stats count when there are no objects.

Pull Request: https://projects.blender.org/blender/blender/pulls/123036
This commit is contained in:
Damien Picard
2024-06-10 23:38:35 +02:00
committed by Harley Acheson
parent 8a3979b034
commit 739abf3031

View File

@@ -828,7 +828,7 @@ void ED_info_draw_stats(
}
else if (!(object_mode & OB_MODE_SCULPT)) {
/* No objects in scene. */
stats_row(col1, labels[OBJ], col2, 0, nullptr, y, height);
stats_row(col1, labels[OBJ], col2, stats_fmt.totobj, nullptr, y, height);
return;
}