diff options
author | Joshua Leung <aligorith@gmail.com> | 2009-04-16 17:10:08 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2009-04-16 17:10:08 +0400 |
commit | f47ab4f0aedf2445bffab2094986884a418a976f (patch) | |
tree | feb0de1eb8f9d32d3ffebd14f03b0a1a64424fc0 /source/blender/editors/armature/poselib.c | |
parent | 23af7214d3721862eae9f4601791ee0602740f50 (diff) |
2.5:
* Added extra parameter to generic unique name finding function BLI_uniquename() for specifying the delimeter between non-unique parts of the name and digits.
* Driver target variables now get unique names by default.
Diffstat (limited to 'source/blender/editors/armature/poselib.c')
-rw-r--r-- | source/blender/editors/armature/poselib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/armature/poselib.c b/source/blender/editors/armature/poselib.c index f4391ca95c8..fc5b98b1690 100644 --- a/source/blender/editors/armature/poselib.c +++ b/source/blender/editors/armature/poselib.c @@ -388,7 +388,7 @@ static int poselib_add_exec (bContext *C, wmOperator *op) } /* validate name */ - BLI_uniquename(&act->markers, marker, "Pose", offsetof(TimeMarker, name), 64); + BLI_uniquename(&act->markers, marker, "Pose", '.', offsetof(TimeMarker, name), 64); /* make sure we've got KeyingSets to use */ poselib_get_builtin_keyingsets(); @@ -562,7 +562,7 @@ static int poselib_rename_exec (bContext *C, wmOperator *op) /* copy name and validate it */ BLI_strncpy(marker->name, newname, sizeof(marker->name)); - BLI_uniquename(&act->markers, marker, "Pose", offsetof(TimeMarker, name), 64); + BLI_uniquename(&act->markers, marker, "Pose", '.', offsetof(TimeMarker, name), 64); /* done */ return OPERATOR_FINISHED; |