Fix T38808: Re-opening an image makes absolute

This commit is contained in:
Campbell Barton 2015-02-18 06:38:10 +11:00
parent 9d879c43f3
commit 5115e86246
Notes: blender-bot 2023-02-14 11:08:31 +01:00
Referenced by issue #38808, Opening an image with 'relative path' selected, gets absolute path.
1 changed files with 1 additions and 2 deletions

View File

@ -687,8 +687,7 @@ Image *BKE_image_load_exists_ex(const char *filepath, bool *r_exists)
if (BLI_path_cmp(strtest, str) == 0) {
if (ima->anim == NULL || ima->id.us == 0) {
BLI_strncpy(ima->name, filepath, sizeof(ima->name)); /* for stringcode */
ima->id.us++; /* officially should not, it doesn't link here! */
ima->id.us++; /* officially should not, it doesn't link here! */
if (ima->ok == 0)
ima->ok = IMA_OK;
if (r_exists)