Fix cursor drag failing to use click-start
Error in b8960267dd
,
the flag was cleared before use.
This commit is contained in:
parent
9416004092
commit
1f9d85f56a
|
@ -1706,12 +1706,6 @@ bool initTransform(bContext *C, TransInfo *t, wmOperator *op, const wmEvent *eve
|
|||
t->launch_event = LEFTMOUSE;
|
||||
}
|
||||
|
||||
if (options & CTX_CURSOR) {
|
||||
/* Cursor should always use the drag start as the combination of click-drag to place & move
|
||||
* doesn't work well if the click location isn't used when transforming. */
|
||||
t->flag |= T_EVENT_DRAG_START;
|
||||
}
|
||||
|
||||
unit_m3(t->spacemtx);
|
||||
|
||||
initTransInfo(C, t, op, event);
|
||||
|
|
|
@ -206,6 +206,12 @@ void initTransInfo(bContext *C, TransInfo *t, wmOperator *op, const wmEvent *eve
|
|||
t->obedit_type = -1;
|
||||
}
|
||||
|
||||
if (t->options & CTX_CURSOR) {
|
||||
/* Cursor should always use the drag start as the combination of click-drag to place & move
|
||||
* doesn't work well if the click location isn't used when transforming. */
|
||||
t->flag |= T_EVENT_DRAG_START;
|
||||
}
|
||||
|
||||
/* Many kinds of transform only use a single handle. */
|
||||
if (t->data_container == NULL) {
|
||||
t->data_container = MEM_callocN(sizeof(*t->data_container), __func__);
|
||||
|
|
Loading…
Reference in New Issue