CTRL+L "Make Links" operators were not using a correct poll(), causing
crash on using it without active object.
This commit is contained in:
Ton Roosendaal
2011-03-14 14:00:15 +00:00
parent 7609370d50
commit 7e69bad1c3

View File

@@ -1354,7 +1354,7 @@ void OBJECT_OT_make_links_data(wmOperatorType *ot)
/* api callbacks */
ot->exec= make_links_data_exec;
ot->poll= ED_operator_objectmode;
ot->poll= ED_operator_object_active;
/* flags */
ot->flag= OPTYPE_REGISTER|OPTYPE_UNDO;