Blender Git Loki
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
1 Modified Path:
/source/blender/editors/interface/interface_panel.c (+185, -224) (Diff)