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 6759c72eb6
commit 37f7ccb5e0

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)