change BLO_library_append_begin to take a main argument rather then a context, means...
[blender.git] / source / blender / windowmanager / intern / wm_operators.c
index a47dfacf3586f6a38e4c016ccfca1f78fb2627ee..5a05be0fefc0a19c56cc2ce31eb0e1b151aa3bad 100644 (file)
@@ -1690,7 +1690,7 @@ static int wm_link_append_exec(bContext *C, wmOperator *op)
        flag_all_listbases_ids(LIB_PRE_EXISTING, 1);
 
        /* here appending/linking starts */
-       mainl = BLO_library_append_begin(C, &bh, libname);
+       mainl = BLO_library_append_begin(bmain, &bh, libname);
        if(totfiles == 0) {
                BLO_library_append_named_part_ex(C, mainl, &bh, name, idcode, flag);
        }