Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2018-05-09 16:38:58 +0300
committerDalai Felinto <dfelinto@gmail.com>2018-05-09 16:53:16 +0300
commit828a3d89b39b49a265a4ba7875dcb3edfe9c477f (patch)
tree81ed8818b924724e58fef096a5a4991c8dfbd732 /source/blender/blenloader
parented23bd5f3c51e812ba097cdbac0a480577c9df4b (diff)
Fix T55015: Crash on selection after recent BVH changes
Runtime data should always be initialized to NULL on read-time.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/readfile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index e65d4e17539..56f18072843 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -4685,8 +4685,8 @@ static void direct_link_mesh(FileData *fd, Mesh *mesh)
mesh->bb = NULL;
mesh->edit_btmesh = NULL;
- mesh->runtime.batch_cache = NULL;
-
+ BKE_mesh_runtime_reset(mesh);
+
/* happens with old files */
if (mesh->mselect == NULL) {
mesh->totselect = 0;