Blender Git Commit Log
Git Commits -> Revision 572bc13
Revision 572bc13 by Julian Eisel (master) September 18, 2016, 19:44 (GMT) |
BLI_listbase: Add/use utility to move link (BLI_listbase_link_move) We were calling BLI_remlink and then BLI_insertlinkbefore/after quite often. BLI_listbase_link_move simplifies code a bit and makes it easier to follow. It also returns if link position has changed which can be used to avoid unnecessary updates. Added it to a number of list reorder operators for now and made use of return value. Behavior shouldn't be changed. Also some minor cleanup. |
Commit Details:
Full Hash: 572bc1364ca9d978edf5aee991849dd4f8e56a52
Parent Commit: 6c28d3b
Lines Changed: +137, -185
14 Modified Paths:
/source/blender/blenkernel/BKE_freestyle.h (+1, -2) (Diff)
/source/blender/blenkernel/BKE_linestyle.h (+4, -4) (Diff)
/source/blender/blenkernel/intern/freestyle.c (+7, -15) (Diff)
/source/blender/blenkernel/intern/linestyle.c (+12, -20) (Diff)
/source/blender/blenlib/BLI_listbase.h (+1, -0) (Diff)
/source/blender/blenlib/intern/listbase.c (+38, -0) (Diff)
/source/blender/editors/armature/pose_group.c (+16, -35) (Diff)
/source/blender/editors/armature/pose_lib.c (+10, -24) (Diff)
/source/blender/editors/gpencil/gpencil_data.c (+8, -20) (Diff)
/source/blender/editors/object/object_vgroup.c (+10, -20) (Diff)
/source/blender/editors/render/render_shading.c (+22, -26) (Diff)
/source/blender/freestyle/FRS_freestyle.h (+1, -2) (Diff)
/source/blender/freestyle/intern/blender_interface/FRS_freestyle.cpp (+6, -16) (Diff)
/source/blender/makesrna/RNA_access.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_linestyle.h (+4, -4) (Diff)
/source/blender/blenkernel/intern/freestyle.c (+7, -15) (Diff)
/source/blender/blenkernel/intern/linestyle.c (+12, -20) (Diff)
/source/blender/blenlib/BLI_listbase.h (+1, -0) (Diff)
/source/blender/blenlib/intern/listbase.c (+38, -0) (Diff)
/source/blender/editors/armature/pose_group.c (+16, -35) (Diff)
/source/blender/editors/armature/pose_lib.c (+10, -24) (Diff)
/source/blender/editors/gpencil/gpencil_data.c (+8, -20) (Diff)
/source/blender/editors/object/object_vgroup.c (+10, -20) (Diff)
/source/blender/editors/render/render_shading.c (+22, -26) (Diff)
/source/blender/freestyle/FRS_freestyle.h (+1, -2) (Diff)
/source/blender/freestyle/intern/blender_interface/FRS_freestyle.cpp (+6, -16) (Diff)
/source/blender/makesrna/RNA_access.h (+1, -1) (Diff)