Fix always capitalized properties in sub-inspector

Fix #46961:

This commit correctly initialize capitalization in sub-inspectors (like shaders's sub-inspector in the inspector panel) with the editor settings.

(cherry picked from commit 281f5a4999)
This commit is contained in:
jmb462 2021-03-13 15:59:37 +01:00 committed by Rémi Verschelde
parent 2f1a8ae751
commit 7ca7acce7b
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -2702,7 +2702,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", this, "_sub_inspector_property_keyed"); sub_inspector->connect("property_keyed", this, "_sub_inspector_property_keyed");
sub_inspector->connect("resource_selected", this, "_sub_inspector_resource_selected"); sub_inspector->connect("resource_selected", this, "_sub_inspector_resource_selected");