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:
authorCampbell Barton <ideasman42@gmail.com>2009-12-16 20:49:51 +0300
committerCampbell Barton <ideasman42@gmail.com>2009-12-16 20:49:51 +0300
commitd71c094bc409b7b4348a8926d129511e54f0f855 (patch)
tree0fa762ad56f01ffa736b2a88b626bee0145cdd35 /source
parent852a8b40f829905cc9c1a3e85e3c357bd87eb7a0 (diff)
fix for crash when inserting keyframes in a mesh
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/animation/keyframing.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/animation/keyframing.c b/source/blender/editors/animation/keyframing.c
index b126e57705e..6d8938d9545 100644
--- a/source/blender/editors/animation/keyframing.c
+++ b/source/blender/editors/animation/keyframing.c
@@ -851,6 +851,11 @@ short insert_keyframe (ID *id, bAction *act, const char group[], const char rna_
/* get action to add F-Curve+keyframe to */
act= verify_adt_action(id, 1);
+ if(act==NULL) {
+ printf("Insert Key: Could not insert keyframe, as this type does not support animation data (ID = %s, Path = %s)\n", id->name, rna_path);
+ return 0;
+ }
+
/* apply NLA-mapping to frame to use (if applicable) */
cfra= BKE_nla_tweakedit_remap(adt, cfra, NLATIME_CONVERT_UNMAP);
}