From e670bd273a0be9b7cfd41755342b1012e1eecfaa Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Wed, 3 Jan 2007 09:13:42 +0000 Subject: [PATCH] Fixed crashes in the Action Editor when keys for shapekeys were displayed and user tries to snap keyframes to frame(s) or mirror keyframes. --- source/blender/src/editaction.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/source/blender/src/editaction.c b/source/blender/src/editaction.c index 0e4a41eaf8b..683e5e3c216 100644 --- a/source/blender/src/editaction.c +++ b/source/blender/src/editaction.c @@ -2241,11 +2241,13 @@ void snap_keys_to_frame(int snap_mode) } /* snap to frame */ - if (key) + if (key) { set_snap_meshchannels(key, snap_mode); - else + } + else { set_snap_actionchannels(act, snap_mode); - remake_action_ipos (act); + remake_action_ipos (act); + } BIF_undo_push(str); allspace(REMAKEIPO, 0); @@ -2334,11 +2336,13 @@ void mirror_action_keys(short mirror_mode) } /* mirror */ - if (key) + if (key) { mirror_meshchannels(key, mirror_mode); - else + } + else { mirror_actionchannels(act, mirror_mode); - remake_action_ipos (act); + remake_action_ipos (act); + } BIF_undo_push(str); allspace(REMAKEIPO, 0);