Make import defaults inspector honor property style settings

This commit is contained in:
Haoyu Qiu 2022-05-06 22:24:57 +08:00
parent de3ccf7a69
commit 9c94ff178d
1 changed files with 5 additions and 0 deletions

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;