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:
commit
9853da4bfe
1 changed files with 2 additions and 1 deletions
|
@ -451,7 +451,8 @@ void ProjectSettingsEditor::_action_reordered(const String &p_action_name, const
|
||||||
|
|
||||||
for (const PropertyInfo &prop : props) {
|
for (const PropertyInfo &prop : props) {
|
||||||
// Skip builtins and non-inputs
|
// 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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue