Fix #108096: UI: copy-paste buttons can change source properties #108270
@ -276,7 +276,13 @@ static void ui_selectcontext_apply(bContext *C,
|
||||
const double value,
|
||||
const double value_orig);
|
||||
|
||||
# define IS_ALLSELECT_EVENT(event) (((event)->modifier & KM_ALT) != 0)
|
||||
/**
|
||||
|
||||
* Only respond to events which are expected to be used for multi button editing,
|
||||
* e.g. ALT is also used for button array pasting, see #108096.
|
||||
*/
|
||||
# define IS_ALLSELECT_EVENT(event) \
|
||||
(((event)->modifier & KM_ALT) != 0 && \
|
||||
(ISMOUSE((event)->type) || ELEM((event)->type, EVT_RETKEY, EVT_PADENTER)))
|
||||
|
||||
/** just show a tinted color so users know its activated */
|
||||
# define UI_BUT_IS_SELECT_CONTEXT UI_BUT_NODE_ACTIVE
|
||||
|
Loading…
Reference in New Issue
Block a user
There should be an explanation for why only certain events are filtered (with a reference to
#108096
). Otherwise this seems fine.