Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2020-09-18 07:15:20 +0300
committerHans Goudey <h.goudey@me.com>2020-09-18 07:15:20 +0300
commit14b2de37dbc3563164bb37fb6fe493bf77190948 (patch)
treeaa9f519f59f4eababd173600f1d1e113a56d4d02 /source/blender/editors/space_image/image_undo.c
parentaa2219285c6b41103e9f07bce08c05006039d0f4 (diff)
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.
Diffstat (limited to 'source/blender/editors/space_image/image_undo.c')
0 files changed, 0 insertions, 0 deletions