Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/screen/screen_ops.c
| Show First 20 Lines • Show All 3,100 Lines • ▼ Show 20 Lines | static int keyframe_jump_exec(bContext *C, wmOperator *op) | ||||
| } | } | ||||
| else { | else { | ||||
| ak = ED_keylist_find_prev(keylist, cfra); | ak = ED_keylist_find_prev(keylist, cfra); | ||||
| } | } | ||||
| while ((ak != NULL) && (done == false)) { | while ((ak != NULL) && (done == false)) { | ||||
| if (scene->r.cfra != (int)ak->cfra) { | if (scene->r.cfra != (int)ak->cfra) { | ||||
| /* this changes the frame, so set the frame and we're done */ | /* this changes the frame, so set the frame and we're done */ | ||||
| scene->r.cfra = (int)ak->cfra; | const int whole_frame = (int)ak->cfra; | ||||
| scene->r.cfra = whole_frame; | |||||
| scene->r.subframe = ak->cfra - whole_frame; | |||||
| done = true; | done = true; | ||||
| } | } | ||||
| else { | else { | ||||
| /* take another step... */ | /* take another step... */ | ||||
| if (next) { | if (next) { | ||||
| ak = ak->next; | ak = ak->next; | ||||
| } | } | ||||
| else { | else { | ||||
| ▲ Show 20 Lines • Show All 2,660 Lines • Show Last 20 Lines | |||||