Skip to content

Commit 24dccd4

Browse files
committed
Merge pull request #99479 from Sauermann/fix-remove-project-conversion
Remove temporary project conversion
2 parents 93d2706 + ee2930c commit 24dccd4

File tree

2 files changed

+0
-26
lines changed

2 files changed

+0
-26
lines changed

core/config/project_settings.cpp

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -532,24 +532,6 @@ void ProjectSettings::_convert_to_last_version(int p_from_version) {
532532
}
533533
}
534534
}
535-
if (p_from_version == 5) {
536-
// Converts the device in events from -3 to -1.
537-
// -3 was introduced in GH-97707 as a way to prevent a clash in device IDs, but as reported in GH-99243, this leads to problems.
538-
// -3 was used during dev-releases, so this conversion helps to revert such affected projects.
539-
// This conversion doesn't affect any other projects, since -3 is not used otherwise.
540-
for (KeyValue<StringName, ProjectSettings::VariantContainer> &E : props) {
541-
if (String(E.key).begins_with("input/")) {
542-
Dictionary action = E.value.variant;
543-
Array events = action["events"];
544-
for (int i = 0; i < events.size(); i++) {
545-
Ref<InputEvent> ev = events[i];
546-
if (ev.is_valid() && ev->get_device() == -3) {
547-
ev->set_device(-1);
548-
}
549-
}
550-
}
551-
}
552-
}
553535
#endif // DISABLE_DEPRECATED
554536
}
555537

editor/editor_settings.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -103,14 +103,6 @@ bool EditorSettings::_set_only(const StringName &p_name, const Variant &p_value)
103103

104104
builtin_action_overrides[action_name].clear();
105105
for (int ev_idx = 0; ev_idx < events.size(); ev_idx++) {
106-
#ifndef DISABLE_DEPRECATED
107-
// -3 was introduced in GH-97707 as a way to prevent a clash in device IDs, but as reported in GH-99243, this leads to problems.
108-
// -3 was used during dev-releases, so this conversion helps to revert such affected editor shortcuts.
109-
Ref<InputEvent> x = events[ev_idx];
110-
if (x.is_valid() && x->get_device() == -3) {
111-
x->set_device(-1);
112-
}
113-
#endif // DISABLE_DEPRECATED
114106
im->action_add_event(action_name, events[ev_idx]);
115107
builtin_action_overrides[action_name].push_back(events[ev_idx]);
116108
}

0 commit comments

Comments
 (0)