Merge branch 'master' into blender2.8
[blender.git] / source / blender / windowmanager / intern / wm_operators.c
index 926e87c..20c4d27 100644 (file)
@@ -1421,7 +1421,7 @@ ID *WM_operator_drop_load_path(struct bContext *C, wmOperator *op, const short i
                errno = 0;
 
                if (idcode == ID_IM) {
-                       id = (ID *)BKE_image_load_exists_ex(path, &exists);
+                       id = (ID *)BKE_image_load_exists_ex(bmain, path, &exists);
                }
                else {
                        BLI_assert(0);