Merge branch 'master' into blender2.8
[blender.git] / source / blender / makesrna / intern / rna_main_api.c
index 9b4d6ea..331bf4a 100644 (file)
@@ -346,7 +346,7 @@ static Image *rna_Main_images_load(Main *bmain, ReportList *reports, const char
 
        errno = 0;
        if (check_existing) {
-               ima = BKE_image_load_exists(filepath);
+               ima = BKE_image_load_exists(bmain, filepath);
        }
        else {
                ima = BKE_image_load(bmain, filepath);