3D View: use context mode string for sidebar
When moving panels from the toolbar to the sidebar, 'bl_context' is now used for filtering panels in both places.
This commit is contained in:
@@ -1224,7 +1224,7 @@ static void view3d_buttons_region_init(wmWindowManager *wm, ARegion *ar)
|
||||
|
||||
static void view3d_buttons_region_draw(const bContext *C, ARegion *ar)
|
||||
{
|
||||
ED_region_panels(C, ar);
|
||||
ED_region_panels_ex(C, ar, (const char * []){CTX_data_mode_string(C), NULL}, -1, true);
|
||||
}
|
||||
|
||||
static void view3d_buttons_region_listener(
|
||||
|
||||
Reference in New Issue
Block a user