ATOM-15649 sorting material types in create material dialog

This commit is contained in:
guthadam
2021-05-27 13:17:51 -05:00
parent b600dd9b71
commit c2822a4063
@@ -71,6 +71,8 @@ namespace MaterialEditor
QObject::connect(m_ui->m_materialTypeComboBox, static_cast<void (QComboBox::*)(const int)>(&QComboBox::currentIndexChanged), this, [this]() { UpdateMaterialTypeSelection(); });
QObject::connect(m_ui->m_materialTypeComboBox, &QComboBox::currentTextChanged, this, [this]() { UpdateMaterialTypeSelection(); });
m_ui->m_materialTypeComboBox->model()->sort(0, Qt::AscendingOrder);
// Select the default material type from settings
auto settings =
AZ::UserSettings::CreateFind<MaterialDocumentSettings>(AZ::Crc32("MaterialDocumentSettings"), AZ::UserSettings::CT_GLOBAL);