Materials: Tree Widget selection change
Remove notification when a foldder is selected rather than a material
This commit is contained in:
committed by
Chris Hennes
parent
e11bafc715
commit
6c149cdf95
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user