diff options
author | Elia Sarti <vekoon@gmail.com> | 2010-02-22 09:05:35 +0300 |
---|---|---|
committer | Elia Sarti <vekoon@gmail.com> | 2010-02-22 09:05:35 +0300 |
commit | 2bfee787a6b2a8884344ef4ef460a4f83da8262d (patch) | |
tree | 0945e75a63697f81863688496a142f1475bee760 /source/blender/editors/space_buttons | |
parent | bc3d96678dc4d6bcd70ec0ea4d528a3c67f1b500 (diff) |
Fix for #21286, Trying to open the toolbox crashed blender 2.5 alpha 1
Added poll function for BUTTONS_OT_toolbox operator
Diffstat (limited to 'source/blender/editors/space_buttons')
-rw-r--r-- | source/blender/editors/space_buttons/buttons_ops.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 *********************/ |