diff --git a/source/blender/editors/space_buttons/buttons_ops.c b/source/blender/editors/space_buttons/buttons_ops.c index 3ebb4c61f7b..7b59f6aafa9 100644 --- a/source/blender/editors/space_buttons/buttons_ops.c +++ b/source/blender/editors/space_buttons/buttons_ops.c @@ -38,6 +38,8 @@ #include "WM_api.h" #include "WM_types.h" +#include "ED_screen.h" + #include "RNA_access.h" #include "RNA_define.h" @@ -75,6 +77,7 @@ void BUTTONS_OT_toolbox(wmOperatorType *ot) /* api callbacks */ ot->invoke= toolbox_invoke; + ot->poll= ED_operator_buttons_active; } /********************** filebrowse operator *********************/