Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_nla/nla_edit.c
| Show First 20 Lines • Show All 570 Lines • ▼ Show 20 Lines | |||||
| /* -------------------------------------------------------------------- */ | /* -------------------------------------------------------------------- */ | ||||
| /** \name View-Frame Operator | /** \name View-Frame Operator | ||||
| * \{ */ | * \{ */ | ||||
| static int nlaedit_viewframe_exec(bContext *C, wmOperator *op) | static int nlaedit_viewframe_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 NLA_OT_view_frame(wmOperatorType *ot) | void NLA_OT_view_frame(wmOperatorType *ot) | ||||
| { | { | ||||
| /* identifiers */ | /* identifiers */ | ||||
| ot->name = "Go to Current Frame"; | ot->name = "Go to Current Frame"; | ||||
| ot->idname = "NLA_OT_view_frame"; | ot->idname = "NLA_OT_view_frame"; | ||||
| ▲ Show 20 Lines • Show All 2,263 Lines • Show Last 20 Lines | |||||