Part: Handle exception in Feature::setMaterialAppearance

This commit is contained in:
wmayer
2024-11-08 23:18:18 +01:00
committed by Chris Hennes
parent dfdd9cd286
commit 3c705eaa2e

View File

@@ -861,7 +861,12 @@ App::Material Feature::getMaterialAppearance() const
void Feature::setMaterialAppearance(const App::Material& material)
{
ShapeMaterial.setValue(material);
try {
ShapeMaterial.setValue(material);
}
catch (const Base::Exception& e) {
e.ReportException();
}
}
// Toponaming project March 2024: This method should be going away when we get to the python layer.