From f47ab4f0aedf2445bffab2094986884a418a976f Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Thu, 16 Apr 2009 13:10:08 +0000 Subject: 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. --- source/blender/editors/armature/poselib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/editors/armature/poselib.c') 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; -- cgit v1.2.3