diff options
author | Ton Roosendaal <ton@blender.org> | 2006-06-17 14:34:05 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-06-17 14:34:05 +0400 |
commit | 4e078c1a738ef6a9def38b8a7e08f771c91ee06d (patch) | |
tree | 8171738825fe37b53640245689b9ad7291d1ca9e /source | |
parent | 5a4dc67281de18829a211cb7a531b9cd3530f377 (diff) |
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!)
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index 3720c85361d..da5e2fcf224 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -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); } } |