Blender Git Commit Log

Git Commits -> Revision 0d5b517

Revision 0d5b517 by Harley Acheson (soc-2021-curves)
June 21, 2021, 14:31 (GMT)
Fix T88799: 3DViewport Stats Column Measurements

To draw the overlay stats in columns the strings must be measured to
find the longest one. In some circumstances this measurement can be
incorrect. We draw the text with a specific size yet do not explicitly
set the size before calling BLF_size. This patch properly sets the size
so that the measurement will match what will be used for output.

See T88799 for examples of measurement failure.

Differential Revision: https://developer.blender.org/D11504

Reviewed by Hans Goudey

Commit Details:

Full Hash: 0d5b517b91e4c7a4a9e94a7625cb2bda8d836ef4
Parent Commit: e305dae
Committed By: Dilith Jayakody
Lines Changed: +1, -1

1 Modified Path:

/source/blender/editors/space_info/info_stats.c (+1, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021