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
This commit is contained in:
parent
1eb73d1596
commit
8e8b4ec3a3
Notes:
blender-bot
2023-02-14 08:28:46 +01:00
Referenced by issue #73587, Panels containing sub-panels: opening animation wrong after double click
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue