Fix for #21286, Trying to open the toolbox crashed blender 2.5 alpha 1

Added poll function for BUTTONS_OT_toolbox operator
This commit is contained in:
Elia Sarti
2010-02-22 06:05:35 +00:00
parent bc3d96678d
commit 2bfee787a6

View File

@@ -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 *********************/