Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/animation/anim_ops.c
| Show First 20 Lines • Show All 163 Lines • ▼ Show 20 Lines | static void change_frame_apply(bContext *C, wmOperator *op) | ||||
| } | } | ||||
| else { | else { | ||||
| CFRA = round_fl_to_int(frame); | CFRA = round_fl_to_int(frame); | ||||
| SUBFRA = 0.0f; | SUBFRA = 0.0f; | ||||
| } | } | ||||
| FRAMENUMBER_MIN_CLAMP(CFRA); | FRAMENUMBER_MIN_CLAMP(CFRA); | ||||
| /* do updates */ | /* do updates */ | ||||
| DEG_id_tag_update(&scene->id, ID_RECALC_AUDIO_SEEK); | DEG_id_tag_update(&scene->id, ID_RECALC_FRAME_CHANGE); | ||||
| WM_event_add_notifier(C, NC_SCENE | ND_FRAME, scene); | WM_event_add_notifier(C, NC_SCENE | ND_FRAME, scene); | ||||
| } | } | ||||
| /* ---- */ | /* ---- */ | ||||
| /* Non-modal callback for running operator without user input */ | /* Non-modal callback for running operator without user input */ | ||||
| static int change_frame_exec(bContext *C, wmOperator *op) | static int change_frame_exec(bContext *C, wmOperator *op) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 471 Lines • Show Last 20 Lines | |||||