Merge pull request #60823 from timothyqiu/import-defaults

Make import defaults inspector honor property style settings
This commit is contained in:
Rémi Verschelde 2022-05-06 17:50:41 +02:00 committed by GitHub
commit 36c8af8849
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -81,6 +81,11 @@ protected:
void ImportDefaultsEditor::_notification(int p_what) {
switch (p_what) {
case NOTIFICATION_ENTER_TREE:
case EditorSettings::NOTIFICATION_EDITOR_SETTINGS_CHANGED: {
inspector->set_property_name_style(EditorPropertyNameProcessor::get_settings_style());
} break;
case NOTIFICATION_PREDELETE: {
inspector->edit(nullptr);
} break;