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/blenkernel/intern/mesh_runtime.c
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/blenkernel/intern/mesh_runtime.c')
-rw-r--r--source/blender/blenkernel/intern/mesh_runtime.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/mesh_runtime.c b/source/blender/blenkernel/intern/mesh_runtime.c
index aebf03151d1..96d31fa9a42 100644
--- a/source/blender/blenkernel/intern/mesh_runtime.c
+++ b/source/blender/blenkernel/intern/mesh_runtime.c
@@ -44,6 +44,13 @@
static ThreadRWMutex loops_cache_lock = PTHREAD_RWLOCK_INITIALIZER;
+/**
+ * Default values defined at read time.
+ */
+void BKE_mesh_runtime_reset(Mesh *mesh)
+{
+ memset(&mesh->runtime, 0, sizeof(mesh->runtime));
+}
/* This is a ported copy of DM_ensure_looptri_data(dm) */
/**