Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_mode_translate.c
| Show First 20 Lines • Show All 378 Lines • ▼ Show 20 Lines | if (t->spacetype == SPACE_ACTION) { | ||||
| /* this space uses time translate */ | /* this space uses time translate */ | ||||
| BKE_report(t->reports, | BKE_report(t->reports, | ||||
| RPT_ERROR, | RPT_ERROR, | ||||
| "Use 'Time_Translate' transform mode instead of 'Translation' mode " | "Use 'Time_Translate' transform mode instead of 'Translation' mode " | ||||
| "for translating keyframes in Dope Sheet Editor"); | "for translating keyframes in Dope Sheet Editor"); | ||||
| t->state = TRANS_CANCEL; | t->state = TRANS_CANCEL; | ||||
| } | } | ||||
| t->mode = TFM_TRANSLATION; | |||||
| t->transform = applyTranslation; | t->transform = applyTranslation; | ||||
| initMouseInputMode(t, &t->mouse, INPUT_VECTOR); | initMouseInputMode(t, &t->mouse, INPUT_VECTOR); | ||||
| t->idx_max = (t->flag & T_2D_EDIT) ? 1 : 2; | t->idx_max = (t->flag & T_2D_EDIT) ? 1 : 2; | ||||
| t->num.flag = 0; | t->num.flag = 0; | ||||
| t->num.idx_max = t->idx_max; | t->num.idx_max = t->idx_max; | ||||
| Show All 18 Lines | |||||