diff options
author | Tobias Langen <Tobl> | 2020-02-28 14:36:14 +0300 |
---|---|---|
committer | Julian Eisel <eiseljulian@gmail.com> | 2020-02-28 14:39:11 +0300 |
commit | 8e8b4ec3a32048fe9a43aeb384367ce797ed07ae (patch) | |
tree | 1d15a21584c6da28ec490c1bb7e3a831718a27da /source/blender/editors | |
parent | 1eb73d1596485f5dc00cdc2e5cf8ff9b8a17f503 (diff) |
Fix T73587: Wrong sub-panel animation on double-click
Under the special circumstance of double clicking and then opening a
panel with sub-panels again, the parent panel's offset in y-direction
was added twice to the child panels: once inside "get_panel_real_ofsy"
and once within "align_sub_panels".
This introduced a visible glitch.
Reviewed by: Julian Eisel
Differential Revision: https://developer.blender.org/D6942
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/interface/interface_panel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_panel.c b/source/blender/editors/interface/interface_panel.c index cc1b7187e45..17c1455bd81 100644 --- a/source/blender/editors/interface/interface_panel.c +++ b/source/blender/editors/interface/interface_panel.c @@ -998,7 +998,7 @@ static int compare_panel(const void *a1, const void *a2) static void align_sub_panels(Panel *pa) { /* Position sub panels. */ - int ofsy = get_panel_real_ofsy(pa) + pa->sizey - pa->blocksizey; + int ofsy = pa->ofsy + pa->sizey - pa->blocksizey; for (Panel *pachild = pa->children.first; pachild; pachild = pachild->next) { if (pachild->runtime_flag & PNL_ACTIVE) { |