Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Bishop <nicholasbishop@gmail.com>2007-01-05 01:09:58 +0300
committerNicholas Bishop <nicholasbishop@gmail.com>2007-01-05 01:09:58 +0300
commit98d3115ffe77e1bbe9a4fc06ea2727548a175f36 (patch)
treeed8925ef908602d6d1ba8a67f265ecf67b7774ce /source/blender/blenloader
parente526b0a06eeab43ea72eea69170b00589cec476e (diff)
Multires bugfix: texcolface.tex_page needs to be updated on file load.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/readfile.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index bd8598e2138..69c8a504367 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -2543,10 +2543,17 @@ static void direct_link_mesh(FileData *fd, Mesh *mesh)
mesh->mr->edge_flags= MEM_callocN(sizeof(short)*lvl->totedge, "Multires Edge Flags");
for(; lvl; lvl= lvl->next) {
+ int i;
+
lvl->verts= newdataadr(fd, lvl->verts);
lvl->faces= newdataadr(fd, lvl->faces);
lvl->edges= newdataadr(fd, lvl->edges);
lvl->texcolfaces= newdataadr(fd, lvl->texcolfaces);
+
+ if(lvl->texcolfaces) {
+ for(i=0; i<lvl->totface; ++i)
+ lvl->texcolfaces[i].tex_page= newdataadr(fd, lvl->texcolfaces[i].tex_page);
+ }
/* Recalculating the maps is faster than reading them from the file */
multires_calc_level_maps(lvl);