Make "Snap to frame" (SHIFT-S) in action editor not crash and not display

a menu if there are no actions.
This commit is contained in:
Alexander Ewering 2006-11-22 21:52:03 +00:00
parent b389706042
commit c506a5fff4

@ -2108,7 +2108,9 @@ void snap_keys_to_frame()
key = get_action_mesh_key();
/* find the type of snapping to do */
event = pupmenu("Snap Frames To%t|Nearest Frame%x1|Current Frame%x2");
if (act || key)
event = pupmenu("Snap Frames To%t|Nearest Frame%x1|Current Frame%x2");
else return;
/* handle events */
switch (event) {