Blender Git Commit Log

Git Commits -> Revision 0d93bd8

Revision 0d93bd8 by Hans Goudey (master)
November 18, 2020, 20:14 (GMT)
UI Code Quality: Refactor panel drawing function

The existing panel drawing function was a bit convoluted with dependent
conditions in different scopes, redundant and unecessary computations,
and un-helpful naming.

This commit separates the function into two parts, the backdrop and the
widgets. It also improves naming and uses const where possible, and in
general cleans up the code.

There are some slight visual changes, mostly with the placement of the
drag icon, which moves a bit downward to be centered with the triangle
icon. The black rectangle displayed while dragging is also removed.

Commit Details:

Full Hash: 0d93bd8d63980f1188e226daba2ba781b8b33658
Parent Commit: d6d7965
Lines Changed: +185, -224

By: Miika HämäläinenLast update: Nov-07-2014 14:18 MiikaHweb | 2003-2020