Fix #108096: UI: copy-paste buttons can change source properties #108270

Merged
Philipp Oeser merged 3 commits from lichtwerk/blender:108096 into blender-v3.6-release 2023-06-07 11:19:10 +02:00

3 Commits

Author SHA1 Message Date
3b71b14904 add comment 2023-06-07 11:11:28 +02:00
b27578b758 tweak event handling
make IS_ALLSELECT_EVENT more specific in regards to events which are
expected to be used for multi button editing (instead of checking the
events for array pasting specifically)
2023-06-01 15:16:40 +02:00
916d9018d4 Fix #108096: UI: copy-paste array buttons can change source properties
Pasting numerical array buttons happens with `Ctrl + Alt + V`.
Holding `Alt` also triggers uiSelectContext, so having other nodes/
objects etc. selected while doing this would try to copy the pasted
values back to other objects (possibly to the ones you pasted from) and
that happens relative to the original value, so the value actually
changes.

To prevent the "copy-to-selected" behavior, check for the specific button
combination in `ui_apply_but` and skip it in that case.
2023-05-25 13:53:38 +02:00