mirror of
https://github.com/godotengine/godot.git
synced 2024-09-20 22:42:43 +00:00
Fix InputEventConfigurationDialog
modifies original event
(cherry picked from commit 9fbf24fd5c
)
This commit is contained in:
parent
577afedc40
commit
5acc7a77fe
|
@ -547,7 +547,7 @@ void InputEventConfigurationDialog::_notification(int p_what) {
|
||||||
|
|
||||||
void InputEventConfigurationDialog::popup_and_configure(const Ref<InputEvent> &p_event) {
|
void InputEventConfigurationDialog::popup_and_configure(const Ref<InputEvent> &p_event) {
|
||||||
if (p_event.is_valid()) {
|
if (p_event.is_valid()) {
|
||||||
_set_event(p_event, p_event->duplicate());
|
_set_event(p_event->duplicate(), p_event);
|
||||||
} else {
|
} else {
|
||||||
// Clear Event
|
// Clear Event
|
||||||
_set_event(Ref<InputEvent>(), Ref<InputEvent>());
|
_set_event(Ref<InputEvent>(), Ref<InputEvent>());
|
||||||
|
|
Loading…
Reference in New Issue
Block a user