Materials: Tree Widget selection change

Remove notification when a foldder is selected
rather than a material
This commit is contained in:
David Carter
2024-06-03 10:52:54 -05:00
committed by Chris Hennes
parent e11bafc715
commit 6c149cdf95
+4 -2
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)