fix [#28846] Relative paths on linked scene fails
[blender.git] / source / blender / makesrna / intern / rna_image_api.c
index b7827989a9409ff4bceb02d01fa4ef7748ab5acc..50ce816d7a13939b2d60d117a9cc9af249e58859 100644 (file)
@@ -142,7 +142,7 @@ static void rna_Image_pack(Image *image, ReportList *reports, int as_png)
                        BKE_image_memorypack(image);
                }
                else {
-                       image->packedfile= newPackedFile(reports, image->name);
+                       image->packedfile= newPackedFile(reports, image->name, ID_BLEND_PATH(G.main, &image->id));
                }
        }
 }