diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2007-01-02 22:23:55 +0300 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2007-01-02 22:23:55 +0300 |
commit | abb9475729afd40373a8185460d59c571d0722de (patch) | |
tree | 68770a8752c3f24de45d317730b1d88a0323fa7c /source/blender/blenloader | |
parent | 557f2b5c8de8a37a72a994884c280ecf61b78576 (diff) |
Fix for a multires crash: when loading dverts, extra call needed to relink them.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index a100f607d22..3eb9c494af5 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -2529,10 +2529,15 @@ static void direct_link_mesh(FileData *fd, Mesh *mesh) mesh->mr= newdataadr(fd, mesh->mr); if(mesh->mr) { MultiresLevel *lvl; + link_list(fd, &mesh->mr->levels); lvl= mesh->mr->levels.first; + direct_link_customdata(fd, &mesh->mr->vdata, lvl->totvert); + direct_link_dverts(fd, lvl->totvert, CustomData_get(&mesh->mr->vdata, 0, CD_MDEFORMVERT)); + mesh->mr->edge_flags= newdataadr(fd, mesh->mr->edge_flags); + for(; lvl; lvl= lvl->next) { lvl->verts= newdataadr(fd, lvl->verts); lvl->faces= newdataadr(fd, lvl->faces); |