Materials: Tree Widget selection change

Remove notification when a foldder is selected
rather than a material
This commit is contained in:
David Carter
2024-05-29 00:33:45 -04:00
committed by Chris Hennes
parent e11bafc715
commit 6c149cdf95

View File

@@ -665,8 +665,10 @@ void MaterialTreeWidget::onSelectMaterial(const QItemSelection& selected,
updateMaterial(uuid);
std::string _uuid = uuid.toStdString();
Q_EMIT materialSelected(getMaterialManager().getMaterial(uuid));
Q_EMIT onMaterial(uuid);
if (!uuid.isEmpty()) {
Q_EMIT materialSelected(getMaterialManager().getMaterial(uuid));
Q_EMIT onMaterial(uuid);
}
}
void MaterialTreeWidget::onDoubleClick(const QModelIndex& index)