Blender Git Loki
Git Commits -> Revision aa03132
Revision aa03132 by Joshua Leung (master) January 20, 2008, 23:53 (GMT) |
[Coder API's]: Added a "generic unique name-finding function". Basically, this is based on the behaviour of the unique_constraint_name (or equivilant) functions, which have traditionally been duplicated everytime a new datatype needed this. Currently, this is in use for the following things: * Constraints * Action/Bone Groups * Local Action Markers / PoseLib poses Usage Notes: * The file in which this is to be used should include the standard header file <stddef.h>. This defines the offsetof() macro, which should be used to find the relative location of the "name" member of the structs * This function is only designed for names of up to 128 chars in length (Most names are at most 32. TimeMarkers are 64). If a longer string needs to be handled, the function will need to be modified accordingly. * defname is the default name that should be used in case one hasn't been specified already |
Commit Details:
Full Hash: aa03132bc30369dc310fdcebe0bf1d94bab1114f
SVN Revision: 13320
Parent Commit: 6f4c03a
Lines Changed: +112, -54
6 Modified Paths:
/source/blender/blenkernel/intern/constraint.c (+2, -49) (Diff)
/source/blender/blenlib/BLI_blenlib.h (+1, -0) (Diff)
/source/blender/blenlib/intern/util.c (+73, -0) (Diff)
/source/blender/src/buttons_editing.c (+21, -2) (Diff)
/source/blender/src/editaction.c (+8, -1) (Diff)
/source/blender/src/poselib.c (+7, -2) (Diff)
/source/blender/blenlib/BLI_blenlib.h (+1, -0) (Diff)
/source/blender/blenlib/intern/util.c (+73, -0) (Diff)
/source/blender/src/buttons_editing.c (+21, -2) (Diff)
/source/blender/src/editaction.c (+8, -1) (Diff)
/source/blender/src/poselib.c (+7, -2) (Diff)