Blender Git Commit Log

Git Commits -> Revision 14b2de3

Revision 14b2de3 by Hans Goudey (master)
September 18, 2020, 04:15 (GMT)
UI: Refactor panel alignment function

This code had grown overly complicated and hard to understand.
The improvements in this commit:
- Avoid allocating a duplicate of every active panel.
- Instead of complicated logic to calculate each panel's offset,
just keep track of the current offset while iterating through.
- More readable code structure, better comments.

Note that calcuting the X offset here is a relic from pre-2.5 when
panels could be aligned horizontally. I kept this in, but it would
be reasonable to remove it in the future.

Commit Details:

Full Hash: 14b2de37dbc3563164bb37fb6fe493bf77190948
Parent Commit: aa22192
Lines Changed: +52, -58

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