Bugfix #24976 revisited

Multi-layer images: clicking on the "Source" popup freed all memory
for multilayers, even when choosing the same "File" entry again.
Now it should work :)
This commit is contained in:
2010-12-16 13:43:20 +00:00
parent 4e26b4ec38
commit 919d341321
2 changed files with 4 additions and 3 deletions

View File

@@ -1440,7 +1440,9 @@ void BKE_image_signal(Image *ima, ImageUser *iuser, int signal)
}
}
image_free_buffers(ima);
/* force reload on first use, but not for multilayer, that makes nodes and buttons in ui drawing fail */
if(ima->type!=IMA_TYPE_MULTILAYER)
image_free_buffers(ima);
ima->ok= 1;
if(iuser)