Blender Git Loki

Blender Git "ui-align-rework" branch commits.

November 6, 2015, 17:35 (GMT)
Split align group code into its own file.

interface.c is becomming a bit too fat...
November 6, 2015, 17:21 (GMT)
Fix comparison between buttons (from review).
November 6, 2015, 17:13 (GMT)
Merge branch 'master' into ui-align-rework
November 6, 2015, 10:03 (GMT)
Merge branch 'master' into ui-align-rework
November 6, 2015, 10:00 (GMT)
Update from reviews, mainly limiting comparison between buttons for big groups.

Current code now sorts buttons in aligngroups from top to bottom, which allows
us some early-out of sub-loop, limiting the O(n2) effect with huge groups of buttons.

Also, bunch of cleanup.
November 5, 2015, 15:03 (GMT)
Merge branch 'master' into ui-align-rework
November 5, 2015, 14:44 (GMT)
Merge branch 'master' into ui-align-rework
November 5, 2015, 10:07 (GMT)
Picky typo fixing.
November 4, 2015, 20:01 (GMT)
Merge branch 'master' into ui-align-rework
November 2, 2015, 18:00 (GMT)
Merge branch 'master' into ui-align-rework
October 22, 2015, 14:30 (GMT)
Merge branch 'master' into ui-align-rework
October 22, 2015, 14:19 (GMT)
Fix (hack around :| ) the one-pixel issue with stiched but not aligned to LEFT/TOP buttons.
October 22, 2015, 07:51 (GMT)
Some more checks & tests, found out were is the cullprit of the off-by-one alignements
of stitched-but-not-aligned buttons on top and left sides, due to correction applied in widget_roundbox_set().
October 22, 2015, 07:22 (GMT)
Huge cleanup, renaming and comments.

Also fixed a few (logical) issues in code.
October 20, 2015, 15:59 (GMT)
Bunch of fixes and cleanup, also take into account non-alignable stuff (like separators),
they need to actually break alignment!

Tortured even more Dimensions panel of Scene buttons to have a really complex aligned layout.

Things work rather nice (much much nicer than with older code at least!), but there is still
a glitch in alignment in some cases, one pixel, though debug prints show it should be same value,
wonder, looks like some rouding stuff or so...
October 20, 2015, 13:04 (GMT)
Refactor of new 'align compute' code.

Much, much shorter now.
October 20, 2015, 13:04 (GMT)
Fix but align drawflags no more cleaned up, and early get-out in case no button uses 'align'.
October 20, 2015, 13:04 (GMT)
UI: fix/rework 'align' computing code.

Previoous code would simply epic fail in complex cases mixing horizontal and vertical layouts,
especially 'column-major' ones.

This ones tries to be more generic and robust.

Globally working rather good, but there are still several glitches compared to previous code.

Also, needs to be refactored to be less verbose.

Also, note that it's roughly 50% slower than previous code - but remains acceptable imho.
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021