Blender Git Commit Log
Git Commits -> Revision 9f5c0ff
Revision 9f5c0ff by Hans Goudey (master) July 2, 2021, 04:03 (GMT) |
Cleanup: Use const variables for object's evaluated mesh Generally the evaluated mesh should not be changed, since that is the job of the modifier stack. Current code is far from const correct in that regard. This commit uses a const variable for the reult of `BKE_object_get_evaluated_mesh` in some cases. The most common remaining case is retrieving a BVH tree from the mesh. |
Commit Details:
Full Hash: 9f5c0ffb5ec293af2e4f003c2178d21e20805b47
Parent Commit: 016a270
Lines Changed: +42, -39
13 Modified Paths:
/source/blender/blenkernel/BKE_object.h (+1, -1) (Diff)
/source/blender/blenkernel/intern/constraint.c (+6, -6) (Diff)
/source/blender/blenkernel/intern/displist.cc (+1, -1) (Diff)
/source/blender/blenkernel/intern/effect.c (+2, -2) (Diff)
/source/blender/blenkernel/intern/gpencil_geom.c (+10, -7) (Diff)
/source/blender/blenkernel/intern/object.c (+2, -2) (Diff)
/source/blender/blenkernel/intern/object_dupli.cc (+7, -7) (Diff)
/source/blender/draw/intern/draw_cache_impl.h (+1, -1) (Diff)
/source/blender/draw/intern/draw_cache_impl_mesh.c (+1, -1) (Diff)
/source/blender/editors/mesh/editmesh_knife_project.c (+2, -2) (Diff)
/source/blender/editors/sculpt_paint/paint_vertex.c (+1, -1) (Diff)
/source/blender/editors/space_info/info_stats.c (+5, -5) (Diff)
/source/blender/editors/space_view3d/drawobject.c (+3, -3) (Diff)
/source/blender/blenkernel/intern/constraint.c (+6, -6) (Diff)
/source/blender/blenkernel/intern/displist.cc (+1, -1) (Diff)
/source/blender/blenkernel/intern/effect.c (+2, -2) (Diff)
/source/blender/blenkernel/intern/gpencil_geom.c (+10, -7) (Diff)
/source/blender/blenkernel/intern/object.c (+2, -2) (Diff)
/source/blender/blenkernel/intern/object_dupli.cc (+7, -7) (Diff)
/source/blender/draw/intern/draw_cache_impl.h (+1, -1) (Diff)
/source/blender/draw/intern/draw_cache_impl_mesh.c (+1, -1) (Diff)
/source/blender/editors/mesh/editmesh_knife_project.c (+2, -2) (Diff)
/source/blender/editors/sculpt_paint/paint_vertex.c (+1, -1) (Diff)
/source/blender/editors/space_info/info_stats.c (+5, -5) (Diff)
/source/blender/editors/space_view3d/drawobject.c (+3, -3) (Diff)