Materials: Catch correct error
When the UUID is set to a non-existent material, it was Catching Materials::ModelNotFound instead of Materials::MaterialNotFound
This commit is contained in:
committed by
Chris Hennes
parent
ac50594e3b
commit
03e60ccc6e
@@ -273,7 +273,7 @@ void MaterialTreeWidget::updateMaterial(const QString& uuid)
|
||||
try {
|
||||
material = std::make_shared<Materials::Material>(*getMaterialManager().getMaterial(uuid));
|
||||
}
|
||||
catch (Materials::ModelNotFound const&) {
|
||||
catch (Materials::MaterialNotFound const&) {
|
||||
Base::Console().Log("*** Unable to load material '%s'\n", uuid.toStdString().c_str());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user