Merge pull request #46967 from jmb462/fix-always-capitalized-subinspector-properties

Fix always capitalized properties in subinspector (Fix #46961)
This commit is contained in:
Rémi Verschelde 2021-03-13 21:47:11 +01:00 committed by GitHub
commit 99a707406b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2915,7 +2915,7 @@ void EditorPropertyResource::update_property() {
sub_inspector->set_use_doc_hints(true); sub_inspector->set_use_doc_hints(true);
sub_inspector->set_sub_inspector(true); sub_inspector->set_sub_inspector(true);
sub_inspector->set_enable_capitalize_paths(true); sub_inspector->set_enable_capitalize_paths(bool(EDITOR_GET("interface/inspector/capitalize_properties")));
sub_inspector->connect("property_keyed", callable_mp(this, &EditorPropertyResource::_sub_inspector_property_keyed)); sub_inspector->connect("property_keyed", callable_mp(this, &EditorPropertyResource::_sub_inspector_property_keyed));
sub_inspector->connect("resource_selected", callable_mp(this, &EditorPropertyResource::_sub_inspector_resource_selected)); sub_inspector->connect("resource_selected", callable_mp(this, &EditorPropertyResource::_sub_inspector_resource_selected));