Fix: UI: Instanced panels are drawn in incorrect tab

When a tab had any instanced panel, all instanced panels were drawn in
this tab. This PR adds same poll function, which is used for adding
panels for drawing them.

Pull Request: https://projects.blender.org/blender/blender/pulls/147238
This commit is contained in:
Richard Antalik
2025-10-03 11:45:21 +02:00
committed by Falk David
parent dad7b35038
commit c5db31272e

View File

@@ -3333,6 +3333,10 @@ void ED_region_panels_layout_ex(const bContext *C,
{
continue;
}
if (!panel_add_check(C, workspace, contexts, category_override, panel->type)) {
continue;
}
const int width = panel_draw_width_from_max_width_get(region, panel->type, max_panel_width);
if (UI_panel_is_dragging(panel)) {