Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/animation/anim_ops.c
| Show First 20 Lines • Show All 68 Lines • ▼ Show 20 Lines | static bool change_frame_poll(bContext *C) | ||||
| if (G.is_rendering) { | if (G.is_rendering) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| /* although it's only included in keymaps for regions using ED_KEYMAP_ANIMATION, | /* although it's only included in keymaps for regions using ED_KEYMAP_ANIMATION, | ||||
| * this shouldn't show up in 3D editor (or others without 2D timeline view) via search | * this shouldn't show up in 3D editor (or others without 2D timeline view) via search | ||||
| */ | */ | ||||
| if (area) { | if (area) { | ||||
| if (ELEM(area->spacetype, SPACE_ACTION, SPACE_NLA, SPACE_SEQ, SPACE_CLIP, SPACE_GRAPH)) { | if (ELEM(area->spacetype, SPACE_ACTION, SPACE_NLA, SPACE_SEQ, SPACE_CLIP)) { | ||||
| return true; | return true; | ||||
| } | } | ||||
| if (area->spacetype == SPACE_GRAPH) { | |||||
| const SpaceGraph *sipo = area->spacedata.first; | |||||
| /* Driver Editor's X axis is not time. */ | |||||
| if (sipo->mode != SIPO_MODE_DRIVERS) { | |||||
| return true; | |||||
| } | |||||
| } | |||||
| } | } | ||||
| CTX_wm_operator_poll_msg_set(C, "Expected an animation area to be active"); | CTX_wm_operator_poll_msg_set(C, "Expected an animation area to be active"); | ||||
| return false; | return false; | ||||
| } | } | ||||
| static int seq_snap_threshold_get_frame_distance(bContext *C) | static int seq_snap_threshold_get_frame_distance(bContext *C) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 544 Lines • Show Last 20 Lines | |||||