Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_action/action_edit.c
| Show First 20 Lines • Show All 458 Lines • ▼ Show 20 Lines | void ACTION_OT_view_selected(wmOperatorType *ot) | ||||
| ot->flag = 0; | ot->flag = 0; | ||||
| } | } | ||||
| /* ****************** View-All Operator ****************** */ | /* ****************** View-All Operator ****************** */ | ||||
| static int actkeys_view_frame_exec(bContext *C, wmOperator *op) | static int actkeys_view_frame_exec(bContext *C, wmOperator *op) | ||||
| { | { | ||||
| const int smooth_viewtx = WM_operator_smooth_viewtx_get(op); | const int smooth_viewtx = WM_operator_smooth_viewtx_get(op); | ||||
| ANIM_center_frame(C, smooth_viewtx); | Scene *scene = CTX_data_scene(C); | ||||
| ANIM_center_frame(C, FPS, scene->r.cfra, smooth_viewtx); | |||||
| return OPERATOR_FINISHED; | return OPERATOR_FINISHED; | ||||
| } | } | ||||
| void ACTION_OT_view_frame(wmOperatorType *ot) | void ACTION_OT_view_frame(wmOperatorType *ot) | ||||
| { | { | ||||
| /* identifiers */ | /* identifiers */ | ||||
| ot->name = "Go to Current Frame"; | ot->name = "Go to Current Frame"; | ||||
| ▲ Show 20 Lines • Show All 1,499 Lines • Show Last 20 Lines | |||||