Fix image.save() - incorrect relative lib path
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user