diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2017-01-27 17:21:14 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2017-01-27 17:21:14 +0300 |
commit | 2081dac93be916a2204ffe1bef2514789a7f8842 (patch) | |
tree | beae5491ddead4b9360dfb12f901c45259fbc76e /source/blender/blenloader | |
parent | 8d04f49d0ea53552500e82afea92addaaa939dfd (diff) |
Mesh batch caches should not be stored in file
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 | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index 255625271ea..b5dd1910f01 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -4607,6 +4607,7 @@ static void direct_link_mesh(FileData *fd, Mesh *mesh) mesh->bb = NULL; mesh->edit_btmesh = NULL; + mesh->batch_cache = NULL; /* happens with old files */ if (mesh->mselect == NULL) { diff --git a/source/blender/blenloader/intern/writefile.c b/source/blender/blenloader/intern/writefile.c index 8ba36d149e6..5011f9836b7 100644 --- a/source/blender/blenloader/intern/writefile.c +++ b/source/blender/blenloader/intern/writefile.c @@ -2270,6 +2270,7 @@ static void write_meshes(WriteData *wd, ListBase *idbase) CustomData_reset(&mesh->pdata); CustomData_reset(&mesh->ldata); mesh->edit_btmesh = NULL; + mesh->batch_cache = NULL; /* now fill in polys to mfaces */ /* XXX This breaks writing design, by using temp allocated memory, which will likely generate |