[Bf-blender-cvs] [486b8fd397f] temp-vert-normals-cleanup: Fix failing cloth physics tests
Hans Goudey
noreply at git.blender.org
Sat Nov 6 19:29:04 CET 2021
Commit: 486b8fd397f07440da6f2c509e386bfc9001b351
Author: Hans Goudey
Date: Sat Nov 6 13:28:57 2021 -0500
Branches: temp-vert-normals-cleanup
https://developer.blender.org/rB486b8fd397f07440da6f2c509e386bfc9001b351
Fix failing cloth physics tests
===================================================================
M source/blender/blenkernel/intern/bvhutils.cc
===================================================================
diff --git a/source/blender/blenkernel/intern/bvhutils.cc b/source/blender/blenkernel/intern/bvhutils.cc
index 19bb1d1b6e1..5f4738ac2f9 100644
--- a/source/blender/blenkernel/intern/bvhutils.cc
+++ b/source/blender/blenkernel/intern/bvhutils.cc
@@ -1475,7 +1475,6 @@ BVHTree *BKE_bvhtree_from_mesh_get(struct BVHTreeFromMesh *data,
BVHTree *tree = nullptr;
BVHCache **bvh_cache_p = (BVHCache **)&mesh->runtime.bvh_cache;
ThreadMutex *mesh_eval_mutex = (ThreadMutex *)mesh->runtime.eval_mutex;
- data->vert_normals = BKE_mesh_ensure_vertex_normals(mesh);
const bool is_cached = bvhcache_find(bvh_cache_p, bvh_cache_type, &tree, nullptr, nullptr);
@@ -1648,6 +1647,8 @@ BVHTree *BKE_bvhtree_from_mesh_get(struct BVHTreeFromMesh *data,
memset(data, 0, sizeof(*data));
}
+ data->vert_normals = BKE_mesh_ensure_vertex_normals(mesh);
+
return tree;
}
More information about the Bf-blender-cvs
mailing list