diff --git a/editor/import_defaults_editor.cpp b/editor/import_defaults_editor.cpp index a2f115c7c..19261a2f8 100644 --- a/editor/import_defaults_editor.cpp +++ b/editor/import_defaults_editor.cpp @@ -90,10 +90,15 @@ protected: }; void ImportDefaultsEditor::_notification(int p_what) { - if (p_what == NOTIFICATION_PREDELETE) { - if (inspector) { + 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; } }