Blender Git Loki

Git Commits -> Revision 6f054f5

Revision 6f054f5 by Yevgeny Makarov (master)
January 28, 2021, 11:33 (GMT)
Fix T83935: Superimposed icon's hotspot is misaligned

Now the icon's rect are drawn wider than it should be, and with
overlapping, probably in order to compensate for the icon's offsets
inside the rect. The solution is to draw icon's rect of the correct
size and center the icon itself.

And make the hotspot exactly match the icon's rect. The last/right
button's hotspot also covers the extra padding on the right.

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

Reviewed by: Julian Eisel

Commit Details:

Full Hash: 6f054f5ac73a1a6bff434efb1e15aea40c2e0647
Parent Commit: c0d2b10
Committed By: Julian Eisel
Lines Changed: +25, -4

2 Modified Paths:

/source/blender/editors/interface/interface_handlers.c (+9, -1) (Diff)
/source/blender/editors/interface/interface_widgets.c (+16, -3) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021