Materials: Check if m_uuid is empty before adding to recents
This commit is contained in:
committed by
Chris Hennes
parent
8d06f768c6
commit
7176b0f8f3
@@ -482,6 +482,9 @@ void MaterialTreeWidget::saveRecents()
|
||||
|
||||
void MaterialTreeWidget::addRecent(const QString& uuid)
|
||||
{
|
||||
if (uuid.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
// Ensure it is a material. New, unsaved materials will not be
|
||||
try {
|
||||
auto material = _materialManager.getMaterial(uuid);
|
||||
|
||||
Reference in New Issue
Block a user