Blender Git Commit Log

Git Commits -> Revision 5f8969b

Revision 5f8969b by Hans Goudey (master)
July 2, 2021, 16:37 (GMT)
Cleanup: Use const mesh to ensure BVH and triangulation cache

As noted in a comment now, these functions only update a cache, so they
don't change the logical state of the mesh, which is "it will have the
data when necessary." Using a const argument will help const correctness
when accessing an object's evaluated mesh.

Commit Details:

Full Hash: 5f8969bb4b43afd20cfe859ad5f00c3cdd28bcf1
Parent Commit: a160934
Lines Changed: +19, -14

8 Modified Paths:

/source/blender/blenkernel/BKE_bvhutils.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_mesh_runtime.h (+1, -1) (Diff)
/source/blender/blenkernel/intern/bvhutils.cc (+5, -2) (Diff)
/source/blender/blenkernel/intern/mesh_runtime.c (+6, -2) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_attribute_proximity.cc (+1, -2) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_attribute_transfer.cc (+3, -3) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_point_distribute.cc (+1, -2) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_raycast.cc (+1, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021