diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-09-23 14:25:22 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-09-23 14:25:22 +0400 |
commit | acb4a03934ab5b4650662a95e5a9e748d2aeadf7 (patch) | |
tree | 3e70220ee992528f07bf47cf83235b7873e341af /source | |
parent | 2152b6fa41ec8e3e10b649cf40515bb5655ce4df (diff) |
remove sticky customdata layers as well as sticky mtex flag
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index 6658be97175..d2f806c5e65 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -7998,6 +7998,13 @@ static void do_versions(FileData *fd, Library *lib, Main *main) } } } + + { + Mesh *me; + for (me = main->mesh.first; me; me = me->id.next) { + CustomData_free_layers(&me->vdata, CD_MSTICKY, me->totvert); + } + } } /* WATCH IT!!!: pointers from libdata have not been converted yet here! */ |