Bugfix #26498
authorTon Roosendaal <ton@blender.org>
Mon, 14 Mar 2011 14:00:15 +0000 (14:00 +0000)
committerTon Roosendaal <ton@blender.org>
Mon, 14 Mar 2011 14:00:15 +0000 (14:00 +0000)
CTRL+L "Make Links" operators were not using a correct poll(), causing
crash on using it without active object.

source/blender/editors/object/object_relations.c

index baf88ba1d9aa92f0fdd4a76b4875f2905b24eaac..8d378d259371a5611de35801fb0a295ba07a397d 100644 (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;