Fix crash on read file
authorClément Foucault <foucault.clem@gmail.com>
Mon, 30 Jan 2017 14:17:03 +0000 (15:17 +0100)
committerClément Foucault <foucault.clem@gmail.com>
Mon, 30 Jan 2017 14:17:03 +0000 (15:17 +0100)
source/blender/blenloader/intern/readfile.c

index 783eb8fd5f44112cbd60d546ab2ddfc29988c923..51c28fed11adb355eea57cf2d4e0f794c8999cd4 100644 (file)
@@ -4615,6 +4615,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) {