PDN: Add catch statements for Revolution perpendicular axis
This commit is contained in:
@@ -183,7 +183,12 @@ App::DocumentObjectExecReturn *Revolution::execute(void)
|
||||
|
||||
bool Revolution::suggestReversed(void)
|
||||
{
|
||||
updateAxis();
|
||||
try {
|
||||
updateAxis();
|
||||
} catch (const Base::Exception& e) {
|
||||
return new App::DocumentObjectExecReturn(e.what());
|
||||
}
|
||||
|
||||
return ProfileBased::getReversedAngle(Base.getValue(), Axis.getValue()) < 0.0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user