Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2009-10-09 13:48:04 +0400
committerJoshua Leung <aligorith@gmail.com>2009-10-09 13:48:04 +0400
commit9ebcd9c5e46c8addd80c8adb97fcee91a1916d57 (patch)
treeeff71904b7fc984a74ed8c36b3b2702fc19fb68e /source/blender/editors/animation/keyingsets.c
parentcc4dd3f04e150613e8c160e4d58f4a557e59c63c (diff)
A few bugfixes:
* #19583: Keying Sets list issues Deleting a Keying Set (or a Keying Set Path) set the active index to 0, but that would mean that the first item would be selected but not visible. * #19590: Keyframing properties of a modifier with more than one of it's type the property will highlight in all - Modifiers now always have a unique name, so renaming a modifier should check that the name is unique. Most of the files changed in this commit were just to make sure that modifiers got unique names when they were created - Modifiers path getter was wrapped a bit wrong (missing the "s around the name) * Constraints Bugs - Constraints renaming now also makes sure the names stay unique - Fixed (or attempted to fix) compiler warnings about some enum declaration for distance constraint
Diffstat (limited to 'source/blender/editors/animation/keyingsets.c')
-rw-r--r--source/blender/editors/animation/keyingsets.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/source/blender/editors/animation/keyingsets.c b/source/blender/editors/animation/keyingsets.c
index d1ac624ec6f..a044e867d56 100644
--- a/source/blender/editors/animation/keyingsets.c
+++ b/source/blender/editors/animation/keyingsets.c
@@ -177,9 +177,10 @@ static int remove_active_keyingset_exec (bContext *C, wmOperator *op)
/* free KeyingSet's data, then remove it from the scene */
BKE_keyingset_free(ks);
-
BLI_freelinkN(&scene->keyingsets, ks);
- scene->active_keyingset= 0;
+
+ /* the active one should now be the previously second-to-last one */
+ scene->active_keyingset--;
return OPERATOR_FINISHED;
}
@@ -258,8 +259,8 @@ static int remove_active_ks_path_exec (bContext *C, wmOperator *op)
BLI_freelinkN(&ks->paths, ksp);
}
- /* fix active path index */
- ks->active_path= 0;
+ /* the active path should now be the previously second-to-last active one */
+ ks->active_path--;
}
else {
BKE_report(op->reports, RPT_ERROR, "No active Keying Set Path to remove");