diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-06-11 20:30:48 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-06-11 20:31:56 +0300 |
commit | 691471fe22be17e9ad24ca4da71aeedea640f05c (patch) | |
tree | 952c5e9aa3d9bbbc80ce57489cc532608ee4a0fe /source/blender/editors/space_buttons/space_buttons.c | |
parent | d4b4504260322c0e259f94599118a148d26f2a7f (diff) |
Cleanup: add simplified panel callbacks
Diffstat (limited to 'source/blender/editors/space_buttons/space_buttons.c')
-rw-r--r-- | source/blender/editors/space_buttons/space_buttons.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/editors/space_buttons/space_buttons.c b/source/blender/editors/space_buttons/space_buttons.c index f322801b122..4fe3423e730 100644 --- a/source/blender/editors/space_buttons/space_buttons.c +++ b/source/blender/editors/space_buttons/space_buttons.c @@ -203,9 +203,7 @@ static void buttons_main_region_layout_properties(const bContext *C, SpaceButs * break; } - if (contexts[0]) { - ED_region_panels(C, ar, contexts, sbuts->mainb, vertical); - } + ED_region_panels_layout_ex(C, ar, contexts, sbuts->mainb, vertical); } static void buttons_main_region_layout_tool(const bContext *C, SpaceButs *sbuts, ARegion *ar) @@ -265,7 +263,7 @@ static void buttons_main_region_layout_tool(const bContext *C, SpaceButs *sbuts, /* TODO */ } - ED_region_panels_layout(C, ar, contexts, -1, vertical); + ED_region_panels_layout_ex(C, ar, contexts, -1, vertical); } static void buttons_main_region_layout(const bContext *C, ARegion *ar) |