Blender Git Commit Log
Git Commits -> Revision 1cf5ce5
Revision 1cf5ce5 by Bastien Montagne (master) October 8, 2020, 10:50 (GMT) |
Cleanup/refactor: `BKE_libblock_alloc` -> `BKE_id_new` in ID creation code. Better use higher-level code from common ID management when possible. Helps to de-duplicate logic, and reduces outside usages of more 'dangerous' functions. Note that we could get rid of many of those `BKE_<id_type>_add` functions now, but on the other hand several of those take extra parameters and perform additional actions, so think we can keep them all for now as 'non-standard ID specific creation functions'. |
Commit Details:
Full Hash: 1cf5ce5e251efdb66dd7066decbdf2e7023a16f3
Parent Commit: df5fe97
Lines Changed: +30, -63
28 Modified Paths:
/source/blender/blenkernel/intern/action.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/armature.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/brush.c (+1, -3) (Diff)
/source/blender/blenkernel/intern/cachefile.c (+1, -3) (Diff)
/source/blender/blenkernel/intern/camera.c (+1, -3) (Diff)
/source/blender/blenkernel/intern/collection.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/curve.c (+1, -0) (Diff)
/source/blender/blenkernel/intern/hair.c (+1, -3) (Diff)
/source/blender/blenkernel/intern/key.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/lattice.c (+1, -3) (Diff)
/source/blender/blenkernel/intern/light.c (+1, -3) (Diff)
/source/blender/blenkernel/intern/lightprobe.c (+1, -3) (Diff)
/source/blender/blenkernel/intern/material.c (+1, -3) (Diff)
/source/blender/blenkernel/intern/mball.c (+1, -3) (Diff)
/source/blender/blenkernel/intern/mesh.c (+1, -3) (Diff)
/source/blender/blenkernel/intern/movieclip.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/object.c (+1, -0) (Diff)
/source/blender/blenkernel/intern/paint.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/particle.c (+3, -2) (Diff)
/source/blender/blenkernel/intern/pointcloud.c (+1, -3) (Diff)
/source/blender/blenkernel/intern/scene.c (+1, -3) (Diff)
/source/blender/blenkernel/intern/simulation.cc (+1, -3) (Diff)
/source/blender/blenkernel/intern/speaker.c (+1, -3) (Diff)
/source/blender/blenkernel/intern/text.c (+1, -3) (Diff)
/source/blender/blenkernel/intern/texture.c (+1, -3) (Diff)
/source/blender/blenkernel/intern/volume.cc (+1, -3) (Diff)
/source/blender/blenkernel/intern/workspace.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/world.c (+1, -3) (Diff)
/source/blender/blenkernel/intern/armature.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/brush.c (+1, -3) (Diff)
/source/blender/blenkernel/intern/cachefile.c (+1, -3) (Diff)
/source/blender/blenkernel/intern/camera.c (+1, -3) (Diff)
/source/blender/blenkernel/intern/collection.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/curve.c (+1, -0) (Diff)
/source/blender/blenkernel/intern/hair.c (+1, -3) (Diff)
/source/blender/blenkernel/intern/key.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/lattice.c (+1, -3) (Diff)
/source/blender/blenkernel/intern/light.c (+1, -3) (Diff)
/source/blender/blenkernel/intern/lightprobe.c (+1, -3) (Diff)
/source/blender/blenkernel/intern/material.c (+1, -3) (Diff)
/source/blender/blenkernel/intern/mball.c (+1, -3) (Diff)
/source/blender/blenkernel/intern/mesh.c (+1, -3) (Diff)
/source/blender/blenkernel/intern/movieclip.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/object.c (+1, -0) (Diff)
/source/blender/blenkernel/intern/paint.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/particle.c (+3, -2) (Diff)
/source/blender/blenkernel/intern/pointcloud.c (+1, -3) (Diff)
/source/blender/blenkernel/intern/scene.c (+1, -3) (Diff)
/source/blender/blenkernel/intern/simulation.cc (+1, -3) (Diff)
/source/blender/blenkernel/intern/speaker.c (+1, -3) (Diff)
/source/blender/blenkernel/intern/text.c (+1, -3) (Diff)
/source/blender/blenkernel/intern/texture.c (+1, -3) (Diff)
/source/blender/blenkernel/intern/volume.cc (+1, -3) (Diff)
/source/blender/blenkernel/intern/workspace.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/world.c (+1, -3) (Diff)