diff options
author | Nicholas Bishop <nicholasbishop@gmail.com> | 2007-01-01 10:53:14 +0300 |
---|---|---|
committer | Nicholas Bishop <nicholasbishop@gmail.com> | 2007-01-01 10:53:14 +0300 |
commit | 2406567b7de9bd3ee5c64a4109b5191598cd9278 (patch) | |
tree | d48933c608f09a96c9e5471d9bfc3f4ed17dda8a /source/blender/blenloader | |
parent | 721271122580e6c4be938d049333c0c64f9e6d2e (diff) |
Added support for load/save of multires edge flags
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 1 | ||||
-rw-r--r-- | source/blender/blenloader/intern/writefile.c | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index 30b319794df..a100f607d22 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -2532,6 +2532,7 @@ static void direct_link_mesh(FileData *fd, Mesh *mesh) link_list(fd, &mesh->mr->levels); lvl= mesh->mr->levels.first; direct_link_customdata(fd, &mesh->mr->vdata, lvl->totvert); + 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); diff --git a/source/blender/blenloader/intern/writefile.c b/source/blender/blenloader/intern/writefile.c index 74aa8848bc1..35b088ebbfc 100644 --- a/source/blender/blenloader/intern/writefile.c +++ b/source/blender/blenloader/intern/writefile.c @@ -1174,8 +1174,10 @@ static void write_meshs(WriteData *wd, ListBase *idbase) writestruct(wd, DATA, "Multires", 1, mesh->mr); if(mesh->mr) { lvl= mesh->mr->levels.first; - if(lvl) + if(lvl) { write_customdata(wd, lvl->totvert, &mesh->mr->vdata); + writedata(wd, DATA, sizeof(short)*lvl->totedge, mesh->mr->edge_flags); + } for(; lvl; lvl= lvl->next) { writestruct(wd, DATA, "MultiresLevel", 1, lvl); writestruct(wd, DATA, "MVert", lvl->totvert, lvl->verts); |