Blender Git Commit Log

Git Commits -> Revision 5f19646

Revision 5f19646 by Harley Acheson (master)
June 9, 2021, 20:39 (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: 5f19646d7edef02479bccd7e898f072c9e54ac6e
Parent Commit: 675677e
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