diff options
author | Joseph Eagar <joeedh@gmail.com> | 2008-02-23 01:23:58 +0300 |
---|---|---|
committer | Joseph Eagar <joeedh@gmail.com> | 2008-02-23 01:23:58 +0300 |
commit | 0e233b3213a21449399d91b9ee841c235fbba4d7 (patch) | |
tree | da61feed9bf0d7274c7725f909e170a39d0e1561 /source/blender/blenloader | |
parent | 28fb57804835e41f51da9bfdecda6b49ede439f2 (diff) |
=Reversion of premul bugfix=
Reversion of premul bugfix, as it was apparently not
working all that well.
Note that this brings back the bug where the erase alpha
paint tool won't display correctly, since the UV image
editor just draws images in key alpha now.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index 7621603b570..f9a5c419adc 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -2419,7 +2419,6 @@ static void lib_link_texture(FileData *fd, Main *main) if(tex->id.flag & LIB_NEEDLINK) { tex->ima= newlibadr_us(fd, tex->id.lib, tex->ima); - tex->ipo= newlibadr_us(fd, tex->id.lib, tex->ipo); if(tex->env) tex->env->object= newlibadr(fd, tex->id.lib, tex->env->object); @@ -7451,58 +7450,6 @@ static void do_versions(FileData *fd, Library *lib, Main *main) } } - /*version patch to migrate premul flag from images to image users*/ - if (main->versionfile < 245 || (main->versionfile == 245 && main->subversionfile < 15)) { - Tex *tex; - Image *image; - ImageUser *iuser; - Scene *scene; - bNode *node; - bNodeTree *ntree; - - /*handle image textures*/ - for (tex=main->tex.first; tex; tex=tex->id.next) { - if (tex->ima) { - image = newlibadr(fd, lib, tex->ima); - if(image) - if (image->flag & IMA_OLDFLAG) - tex->iuser.flag |= IMA_DO_PREMUL; - } - } - - /*handle composite node trees*/ - for (scene=main->scene.first; scene; scene=scene->id.next) { - if (scene->nodetree) { - for (node=scene->nodetree->nodes.first; node; node=node->next) { - ID *nodeid = newlibadr(fd, lib, node->id); - if (node->storage && nodeid && GS(nodeid->name) == ID_IM) { - image = (Image*) nodeid; - iuser = node->storage; - if (image->flag & IMA_OLDFLAG) iuser->flag |= IMA_DO_PREMUL; - } - } - } - } - - /*handle node groups*/ - for (ntree=main->nodetree.first; ntree; ntree=ntree->id.next) { - if (ntree->type == NTREE_COMPOSIT) { - for (node=ntree->nodes.first; node; node=node->next) { - ID *nodeid = newlibadr(fd, lib, node->id); - if (node->storage && nodeid && GS(nodeid->name) == ID_IM) { - image = (Image*) nodeid; - iuser = node->storage; - if (image->flag & IMA_OLDFLAG) iuser->flag |= IMA_DO_PREMUL; - } - } - } - } - - /*finally, remove the flag from all images*/ - for (image=main->image.first; image; image=image->id.next) { - if (image->flag & IMA_OLDFLAG) image->flag &= ~IMA_OLDFLAG; - } - } /* WATCH IT!!!: pointers from libdata have not been converted yet here! */ /* WATCH IT 2!: Userdef struct init has to be in src/usiblender.c! */ |