Fix T96835: Grease pencil tweak tool selects but doesn't drag
Use the pass-through matching the view3d.select operator.
This commit is contained in:
parent
2aa49107a2
commit
62c73db734
Notes:
blender-bot
2023-03-02 09:55:43 +01:00
Referenced by issue #96835, Regression: GPencil: In edit mode "Tweak Tool: Left Mouse Select & Move" does not work correctly
Referenced by pull request #105342, Fix #105339: grease pencil selection can toggle object selection
Referenced by commit 2eeec49640
, Fix #105339: grease pencil selection can toggle object selection
|
@ -2651,7 +2651,7 @@ static int gpencil_select_exec(bContext *C, wmOperator *op)
|
|||
WM_event_add_notifier(C, NC_GEOM | ND_SELECT, NULL);
|
||||
}
|
||||
|
||||
return OPERATOR_FINISHED;
|
||||
return OPERATOR_PASS_THROUGH | OPERATOR_FINISHED;
|
||||
}
|
||||
|
||||
static int gpencil_select_invoke(bContext *C, wmOperator *op, const wmEvent *event)
|
||||
|
@ -2662,7 +2662,9 @@ static int gpencil_select_invoke(bContext *C, wmOperator *op, const wmEvent *eve
|
|||
RNA_boolean_set(op->ptr, "use_shift_extend", event->modifier & KM_SHIFT);
|
||||
}
|
||||
|
||||
return gpencil_select_exec(C, op);
|
||||
const int retval = gpencil_select_exec(C, op);
|
||||
|
||||
return WM_operator_flag_only_pass_through_on_press(retval, event);
|
||||
}
|
||||
|
||||
void GPENCIL_OT_select(wmOperatorType *ot)
|
||||
|
|
Loading…
Reference in New Issue