Browse Source

Merge pull request #60823 from timothyqiu/import-defaults

Make import defaults inspector honor property style settings
Rémi Verschelde 3 years ago
parent
commit
36c8af8849
1 changed files with 5 additions and 0 deletions
  1. 5 0
      editor/import_defaults_editor.cpp

+ 5 - 0
editor/import_defaults_editor.cpp

@@ -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;