[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [25413] trunk/blender/source/blender/ editors/animation/keyframing.c: fix for crash when inserting keyframes in a mesh
Campbell Barton
ideasman42 at gmail.com
Wed Dec 16 18:49:51 CET 2009
Revision: 25413
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=25413
Author: campbellbarton
Date: 2009-12-16 18:49:51 +0100 (Wed, 16 Dec 2009)
Log Message:
-----------
fix for crash when inserting keyframes in a mesh
Modified Paths:
--------------
trunk/blender/source/blender/editors/animation/keyframing.c
Modified: trunk/blender/source/blender/editors/animation/keyframing.c
===================================================================
--- trunk/blender/source/blender/editors/animation/keyframing.c 2009-12-16 16:45:18 UTC (rev 25412)
+++ trunk/blender/source/blender/editors/animation/keyframing.c 2009-12-16 17:49:51 UTC (rev 25413)
@@ -851,6 +851,11 @@
/* 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);
}
More information about the Bf-blender-cvs
mailing list