Make import defaults inspector honor property style settings
This commit is contained in:
parent
60dc792365
commit
809a0362c1
1 changed files with 8 additions and 3 deletions
|
@ -70,10 +70,15 @@ protected:
|
||||||
};
|
};
|
||||||
|
|
||||||
void ImportDefaultsEditor::_notification(int p_what) {
|
void ImportDefaultsEditor::_notification(int p_what) {
|
||||||
if (p_what == NOTIFICATION_PREDELETE) {
|
switch (p_what) {
|
||||||
if (inspector) {
|
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);
|
inspector->edit(nullptr);
|
||||||
}
|
} break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue