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:
committed by
Falk David
parent
dad7b35038
commit
c5db31272e
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user