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:
Campbell Barton
2018-10-01 16:56:41 +10:00
parent c06333d77b
commit d64e60340f

View File

@@ -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(