Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_generics.c
| Show First 20 Lines • Show All 146 Lines • ▼ Show 20 Lines | void initTransInfo(bContext *C, TransInfo *t, wmOperator *op, const wmEvent *event) | ||||
| t->region = region; | t->region = region; | ||||
| t->settings = ts; | t->settings = ts; | ||||
| t->reports = op ? op->reports : NULL; | t->reports = op ? op->reports : NULL; | ||||
| t->helpline = HLP_NONE; | t->helpline = HLP_NONE; | ||||
| t->flag = 0; | t->flag = 0; | ||||
| if (obact && !(t->options & (CTX_CURSOR | CTX_TEXTURE_SPACE)) && | if (obact && ELEM(object_mode, OB_MODE_EDIT, OB_MODE_EDIT_GPENCIL)) { | ||||
| ELEM(object_mode, OB_MODE_EDIT, OB_MODE_EDIT_GPENCIL)) { | |||||
| t->obedit_type = obact->type; | t->obedit_type = obact->type; | ||||
| } | } | ||||
| else { | else { | ||||
| t->obedit_type = -1; | t->obedit_type = -1; | ||||
| } | } | ||||
| /* Many kinds of transform only use a single handle. */ | /* Many kinds of transform only use a single handle. */ | ||||
| if (t->data_container == NULL) { | if (t->data_container == NULL) { | ||||
| ▲ Show 20 Lines • Show All 1,235 Lines • Show Last 20 Lines | |||||