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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user