Skip to content

Commit

Permalink
Merge pull request #60824 from timothyqiu/import-defaults-3.x
Browse files Browse the repository at this point in the history
[3.x] Make import defaults inspector honor property style settings
  • Loading branch information
akien-mga authored May 6, 2022
2 parents 60dc792 + 809a036 commit 4ea6707
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions editor/import_defaults_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,15 @@ class ImportDefaultsEditorSettings : public Object {
};

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

Expand Down

0 comments on commit 4ea6707

Please sign in to comment.