Fix for a multires crash: when loading dverts, extra call needed to relink them.

This commit is contained in:
Nicholas Bishop
2007-01-02 19:23:55 +00:00
parent 557f2b5c8d
commit abb9475729

View File

@@ -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);