Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_image/image_ops.c
| Show First 20 Lines • Show All 3,599 Lines • ▼ Show 20 Lines | static void change_frame_apply(bContext *C, wmOperator *op) | ||||
| Scene *scene = CTX_data_scene(C); | Scene *scene = CTX_data_scene(C); | ||||
| /* set the new frame number */ | /* set the new frame number */ | ||||
| CFRA = RNA_int_get(op->ptr, "frame"); | CFRA = RNA_int_get(op->ptr, "frame"); | ||||
| FRAMENUMBER_MIN_CLAMP(CFRA); | FRAMENUMBER_MIN_CLAMP(CFRA); | ||||
| SUBFRA = 0.0f; | SUBFRA = 0.0f; | ||||
| /* 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); | ||||
| } | } | ||||
| static int change_frame_exec(bContext *C, wmOperator *op) | static int change_frame_exec(bContext *C, wmOperator *op) | ||||
| { | { | ||||
| change_frame_apply(C, op); | change_frame_apply(C, op); | ||||
| return OPERATOR_FINISHED; | return OPERATOR_FINISHED; | ||||
| ▲ Show 20 Lines • Show All 540 Lines • Show Last 20 Lines | |||||