diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2015-11-06 20:39:56 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2015-11-06 20:54:33 +0300 |
commit | 3d39b98f94a6cd3d4445226dd04d5ba3261bf10b (patch) | |
tree | 60dd4a9d3ad22e6622272558e3b09ec0505e9a0b /source/blender/editors/interface/CMakeLists.txt | |
parent | a25df21631f205c547a476bdc442259bd9a793e0 (diff) |
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
Diffstat (limited to 'source/blender/editors/interface/CMakeLists.txt')
-rw-r--r-- | source/blender/editors/interface/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/interface/CMakeLists.txt b/source/blender/editors/interface/CMakeLists.txt index 3efb4921bbe..c57f8d5c7a8 100644 --- a/source/blender/editors/interface/CMakeLists.txt +++ b/source/blender/editors/interface/CMakeLists.txt @@ -40,6 +40,7 @@ set(INC_SYS set(SRC interface.c + interface_align.c interface_anim.c interface_draw.c interface_eyedropper.c |