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