Bug fix in 2.66 release, irc submitted.

File with packed images crashes on load.

Do-versions now is copying Images, because texture "use alpha" has been removed...
However, it then also copied packaged images, which crashes for some reason.

For now I skip packed image copy, which keeps blender work. This versioning
code needs more checking though.
This commit is contained in:
Ton Roosendaal
2013-02-23 14:52:40 +00:00
parent 89e0de3c35
commit 5de307122c

View File

@@ -8714,7 +8714,8 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
if (image == blo_do_versions_newlibadr(fd, otex->id.lib, otex->ima))
break;
if (otex) {
/* no duplication for packed files */
if (otex && image->packedfile == NULL) {
/* copy image datablock */
nimage = BKE_image_copy(main, image);
nimage->flag |= IMA_IGNORE_ALPHA|IMA_DONE_TAG;