Blender Git Commit Log

Git Commits -> Revision b76cafb

July 4, 2021, 05:26 (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: b76cafb1919e31b701f6eb70f24390e7916b22f9
Parent Commit: 0a40cfb
Committed By: YimingWu
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