Fixed crashes in the Action Editor when keys for shapekeys were displayed

and user tries to snap keyframes to frame(s) or mirror keyframes.
This commit is contained in:
Joshua Leung 2007-01-03 09:13:42 +00:00
parent b6264c6b0a
commit e670bd273a

@ -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);