ソースを参照

Make import defaults inspector honor property style settings

Haoyu Qiu 3 年 前
コミット
809a0362c1
1 ファイル変更8 行追加3 行削除
  1. 8 3
      editor/import_defaults_editor.cpp

+ 8 - 3
editor/import_defaults_editor.cpp

@@ -70,10 +70,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;
 	}
 }