You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-15 13:51:40 +00:00
-Fixed changes to default input actions not working, closes #10502
-Added Array.duplicate() method, needed to fix above
This commit is contained in:
@@ -182,8 +182,8 @@ void ProjectSettingsEditor::_device_input_add() {
|
||||
Ref<InputEvent> ie;
|
||||
String name = add_at;
|
||||
int idx = edit_idx;
|
||||
Variant old_val = ProjectSettings::get_singleton()->get(name);
|
||||
Array arr = old_val;
|
||||
Array old_val = ProjectSettings::get_singleton()->get(name);
|
||||
Array arr = old_val.duplicate();
|
||||
|
||||
switch (add_type) {
|
||||
|
||||
@@ -285,8 +285,8 @@ void ProjectSettingsEditor::_press_a_key_confirm() {
|
||||
String name = add_at;
|
||||
int idx = edit_idx;
|
||||
|
||||
Variant old_val = ProjectSettings::get_singleton()->get(name);
|
||||
Array arr = old_val;
|
||||
Array old_val = ProjectSettings::get_singleton()->get(name);
|
||||
Array arr = old_val.duplicate();
|
||||
|
||||
for (int i = 0; i < arr.size(); i++) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user