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
path: root/source
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2013-09-03 10:46:17 +0400
committerJoshua Leung <aligorith@gmail.com>2013-09-03 10:46:17 +0400
commit2f426fd1b5aa87357d4ec2543ce3530e4129e1ff (patch)
tree94cdaa3d2a4a6b2a62efe4462ebd58c489053752 /source
parent033ca89f1255298dfd350b0127d48d74fd918b18 (diff)
Bugfix: When deleting all keyframes from F-Curves, don't delete the F-Curve if
it has a driver
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/space_graph/graph_edit.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/editors/space_graph/graph_edit.c b/source/blender/editors/space_graph/graph_edit.c
index 68a0a1799c1..7a36cd98c2c 100644
--- a/source/blender/editors/space_graph/graph_edit.c
+++ b/source/blender/editors/space_graph/graph_edit.c
@@ -882,8 +882,12 @@ static void delete_graph_keys(bAnimContext *ac)
delete_fcurve_keys(fcu);
/* Only delete curve too if it won't be doing anything anymore */
- if ((fcu->totvert == 0) && (list_has_suitable_fmodifier(&fcu->modifiers, 0, FMI_TYPE_GENERATE_CURVE) == 0))
+ if ((fcu->totvert == 0) &&
+ (list_has_suitable_fmodifier(&fcu->modifiers, 0, FMI_TYPE_GENERATE_CURVE) == 0) &&
+ (fcu->driver == NULL))
+ {
ANIM_fcurve_delete_from_animdata(ac, adt, fcu);
+ }
}
/* free filtered list */