Blender Git Loki

Git Commits -> Revision 3d39b98

Revision 3d39b98 by Bastien Montagne (master)
November 6, 2015, 17:54 (GMT)
New uialign code, based on 2D positions of widgets.

This new code fixes a tons of issues with previous one, which basically was epic-failing
in many non-basic cases (especially mixed columns and rows with column-dominant layout).

It basically no more relies over order of buttons declaration in the uiBlock, instead it
finds and stores spatial neighbors and uses that data to compute needed stitching.
See code comments for details.

New code seems to be roughly ten times slower than old one (for complex grouped layouts),
that is, about a few microsecconds per alignment group - this remains reasonable.

Also, ui-align code becomming rather big in itself, it was separated in
own new `interface_align.c` file.

Reviewers: campbellbarton, severin

Reviewed By: campbellbarton, severin

Differential Revision: https://developer.blender.org/D1573

Commit Details:

Full Hash: 3d39b98f94a6cd3d4445226dd04d5ba3261bf10b
Parent Commit: a25df21
Lines Changed: +645, -191

1 Added Path:

/source/blender/editors/interface/interface_align.c (+631, -0) (View)

6 Modified Paths:

/source/blender/editors/include/UI_interface.h (+6, -0) (Diff)
/source/blender/editors/interface/CMakeLists.txt (+1, -0) (Diff)
/source/blender/editors/interface/interface.c (+0, -189) (Diff)
/source/blender/editors/interface/interface_intern.h (+3, -0) (Diff)
/source/blender/editors/interface/interface_layout.c (+2, -0) (Diff)
/source/blender/editors/interface/interface_widgets.c (+2, -2) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021