svn merge ^/trunk/blender -r40720:40872
[blender.git] / source / blender / makesrna / intern / rna_image_api.c
index c90f3fe7e88109f3567cf9dab44045682f83e51e..b2b9f7a4542b25a9bffaade0fa04f94b95884e0b 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));
                }
        }
 }