diff options
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_toolbar.c')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_toolbar.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/source/blender/editors/space_view3d/view3d_toolbar.c b/source/blender/editors/space_view3d/view3d_toolbar.c index dfa64bd2015..8c77cf36c91 100644 --- a/source/blender/editors/space_view3d/view3d_toolbar.c +++ b/source/blender/editors/space_view3d/view3d_toolbar.c @@ -63,11 +63,12 @@ #include "view3d_intern.h" /* own include */ +#ifndef WITH_REDO_REGION_REMOVAL /* ******************* view3d space & buttons ************** */ static void view3d_panel_operator_redo_buts(const bContext *C, Panel *pa, wmOperator *op) { - uiTemplateOperatorPropertyButs(C, pa->layout, op, NULL, 'V', 0); + uiTemplateOperatorPropertyButs(C, pa->layout, op, NULL, UI_BUT_LABEL_ALIGN_COLUMN, 0); } static void view3d_panel_operator_redo_header(const bContext *C, Panel *pa) @@ -126,6 +127,8 @@ static void view3d_panel_operator_redo(const bContext *C, Panel *pa) CTX_wm_region_set((bContext *)C, ar); } +#endif + /* ******************* */ typedef struct CustomTool { @@ -239,10 +242,11 @@ void view3d_toolshelf_register(ARegionType *art) BLI_addtail(&art->paneltypes, pt); } +#ifndef WITH_REDO_REGION_REMOVAL void view3d_tool_props_register(ARegionType *art) { PanelType *pt; - + pt = MEM_callocN(sizeof(PanelType), "spacetype view3d panel last operator"); strcpy(pt->idname, "VIEW3D_PT_last_operator"); strcpy(pt->label, N_("Operator")); @@ -251,6 +255,7 @@ void view3d_tool_props_register(ARegionType *art) pt->draw = view3d_panel_operator_redo; BLI_addtail(&art->paneltypes, pt); } +#endif /* ********** operator to open/close toolshelf region */ |