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:
authorGermano <germano.costa@ig.com.br>2018-05-16 20:28:28 +0300
committerGermano <germano.costa@ig.com.br>2018-05-16 20:28:28 +0300
commit91d3a5c1f7bff929cfcf7929e827f616c271b882 (patch)
treecab2e89259aced88d4868ed1dfca1e883b7161ff /source/blender/blenkernel
parentf6601e2deb9e4a26708c6114024acd391f274788 (diff)
Fix crash when duplicating an object type mesh with raycast operation enabled.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r--source/blender/blenkernel/intern/mesh.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/mesh.c b/source/blender/blenkernel/intern/mesh.c
index 266247d5143..aea3e5f4281 100644
--- a/source/blender/blenkernel/intern/mesh.c
+++ b/source/blender/blenkernel/intern/mesh.c
@@ -551,7 +551,10 @@ void BKE_mesh_copy_data(Main *bmain, Mesh *me_dst, const Mesh *me_src, const int
BKE_mesh_update_customdata_pointers(me_dst, do_tessface);
me_dst->edit_btmesh = NULL;
+
+ /* Call BKE_mesh_runtime_reset? */
me_dst->runtime.batch_cache = NULL;
+ me_dst->runtime.looptris.array = NULL;
me_dst->runtime.bvh_cache = NULL;
if (me_src->id.tag & LIB_TAG_NO_MAIN) {