Part: Handle exception in Feature::setMaterialAppearance
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user