Bugfix in the patching for Stucci texture: the version code assumed that

the MTex (mapping for texture) always had a texture... which should be
tested of course. My bad!

(Thanks Plumi studio for report!)
This commit is contained in:
2006-06-17 10:34:05 +00:00
parent 5a4dc67281
commit 4e078c1a73

View File

@@ -5491,7 +5491,7 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
for(a=0; a<MAX_MTEX; a++) {
if(ma->mtex[a] && ma->mtex[a]->tex) {
Tex *tex= newlibadr(fd, lib, ma->mtex[a]->tex);
if(tex->type==TEX_STUCCI)
if(tex && tex->type==TEX_STUCCI)
ma->mtex[a]->mapto &= ~(MAP_COL|MAP_SPEC|MAP_REF);
}
}