Merge pull request #77009 from jpcerrone/fix_errors_while_reordering_input_maps

Fix errors that appear while reordering input map entries
This commit is contained in:
Rémi Verschelde 2023-05-15 13:44:33 +02:00
commit 9853da4bfe
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 2 additions and 1 deletions

View File

@ -451,7 +451,8 @@ void ProjectSettingsEditor::_action_reordered(const String &p_action_name, const
for (const PropertyInfo &prop : props) {
// Skip builtins and non-inputs
if (ProjectSettings::get_singleton()->is_builtin_setting(prop.name) || !prop.name.begins_with("input/")) {
// Order matters here, checking for "input/" filters out properties that aren't settings and produce errors in is_builtin_setting().
if (!prop.name.begins_with("input/") || ProjectSettings::get_singleton()->is_builtin_setting(prop.name)) {
continue;
}