Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_mode_timetranslate.c
| Show First 20 Lines • Show All 175 Lines • ▼ Show 20 Lines | |||||
| void initTimeTranslate(TransInfo *t) | void initTimeTranslate(TransInfo *t) | ||||
| { | { | ||||
| /* this tool is only really available in the Action Editor... */ | /* this tool is only really available in the Action Editor... */ | ||||
| if (!ELEM(t->spacetype, SPACE_ACTION, SPACE_SEQ)) { | if (!ELEM(t->spacetype, SPACE_ACTION, SPACE_SEQ)) { | ||||
| t->state = TRANS_CANCEL; | t->state = TRANS_CANCEL; | ||||
| } | } | ||||
| t->mode = TFM_TIME_TRANSLATE; | |||||
| t->transform = applyTimeTranslate; | t->transform = applyTimeTranslate; | ||||
| initMouseInputMode(t, &t->mouse, INPUT_NONE); | initMouseInputMode(t, &t->mouse, INPUT_NONE); | ||||
| /* num-input has max of (n-1) */ | /* num-input has max of (n-1) */ | ||||
| t->idx_max = 0; | t->idx_max = 0; | ||||
| t->num.flag = 0; | t->num.flag = 0; | ||||
| t->num.idx_max = t->idx_max; | t->num.idx_max = t->idx_max; | ||||
| Show All 11 Lines | |||||