[Bf-blender-cvs] [4e2eea6] master: Fix clear keyframes op not reporting when called over a locked fcurve.
Bastien Montagne
noreply at git.blender.org
Wed Jan 27 17:25:36 CET 2016
Commit: 4e2eea63a4d754744d94de3937d0b29d87ae13f7
Author: Bastien Montagne
Date: Wed Jan 27 17:23:55 2016 +0100
Branches: master
https://developer.blender.org/rB4e2eea63a4d754744d94de3937d0b29d87ae13f7
Fix clear keyframes op not reporting when called over a locked fcurve.
Debug print here is not that useful to common user, and keyframe deletion
does report warning, so do the same for clear op.
Reported by venomgfx over IRC, thanks.
===================================================================
M source/blender/editors/animation/keyframing.c
===================================================================
diff --git a/source/blender/editors/animation/keyframing.c b/source/blender/editors/animation/keyframing.c
index 0d105f9..d376a20 100644
--- a/source/blender/editors/animation/keyframing.c
+++ b/source/blender/editors/animation/keyframing.c
@@ -1253,8 +1253,9 @@ static short clear_keyframe(ReportList *reports, ID *id, bAction *act, const cha
continue;
if (BKE_fcurve_is_protected(fcu)) {
- if (G.debug & G_DEBUG)
- printf("WARNING: not deleting keyframe for locked F-Curve\n");
+ BKE_reportf(reports, RPT_WARNING,
+ "Not clearing all keyframes from locked F-Curve '%s' for %s '%s'",
+ fcu->rna_path, BKE_idcode_to_name(GS(id->name)), id->name + 2);
continue;
}
More information about the Bf-blender-cvs
mailing list