summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2022-05-06 22:24:57 +0800
committerHaoyu Qiu <timothyqiu32@gmail.com>2022-05-06 22:24:57 +0800
commit9c94ff178dc7225ec90cf9c28fa4b1b50bd9c729 (patch)
tree8fffde801b33119b37773274a3c5b7690e18bf66
parentde3ccf7a69ec34de6cc386806dfeee92d3537325 (diff)
Make import defaults inspector honor property style settings
-rw-r--r--editor/import_defaults_editor.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/editor/import_defaults_editor.cpp b/editor/import_defaults_editor.cpp
index ca979c094f..ff6b34dd36 100644
--- a/editor/import_defaults_editor.cpp
+++ b/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;