mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix image.save() - incorrect relative lib path
This commit is contained in:
parent
1004a7db97
commit
d79e11fcc8
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue