Fix T74809: Use after free when merging specific areas

Was incorrectly triggering animation for panels which would be free'd
before the animation ended.
This commit is contained in:
Julian Eisel 2020-04-19 14:36:22 +02:00
parent 1f1520a045
commit 3cd147b49f
Notes: blender-bot 2023-02-14 06:47:29 +01:00
Referenced by issue #74809, Use after free when merging specific areas
1 changed files with 2 additions and 1 deletions

View File

@ -428,7 +428,8 @@ void UI_panel_end(
}
int align = panel_aligned(area, region);
if (old_region_ofsx != panel_region_offset_x_get(region, align)) {
panel->runtime.region_ofsx = panel_region_offset_x_get(region, align);
if (old_region_ofsx != panel->runtime.region_ofsx) {
panel->runtime_flag |= PNL_ANIM_ALIGN;
}
}