From d79e11fcc86ba045c4ba7ec4ea3ac658fcb8378a Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 22 Sep 2014 12:38:40 +1000 Subject: Fix image.save() - incorrect relative lib path --- source/blender/makesrna/intern/rna_image_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/makesrna/intern/rna_image_api.c') diff --git a/source/blender/makesrna/intern/rna_image_api.c b/source/blender/makesrna/intern/rna_image_api.c index 1fb46c009a0..d9a59c4dc55 100644 --- a/source/blender/makesrna/intern/rna_image_api.c +++ b/source/blender/makesrna/intern/rna_image_api.c @@ -115,7 +115,7 @@ static void rna_Image_save(Image *image, bContext *C, ReportList *reports) if (ibuf) { char filename[FILE_MAX]; BLI_strncpy(filename, image->name, sizeof(filename)); - BLI_path_abs(filename, G.main->name); + BLI_path_abs(filename, ID_BLEND_PATH(G.main, &image->id)); if (image->packedfile) { if (writePackedFile(reports, image->name, image->packedfile, 0) != RET_OK) { -- cgit v1.2.3