PartDesign: Hole: Print error when no axis was found (#23659)
* PartDesign: Hole: Print error when no axis was found * Remove unrelated string update
This commit is contained in:
@@ -2116,6 +2116,9 @@ App::DocumentObjectExecReturn* Hole::execute()
|
||||
}
|
||||
std::vector<TopoShape> holes;
|
||||
auto compound = findHoles(holes, profileshape, protoHole);
|
||||
if (holes.empty()) {
|
||||
return new App::DocumentObjectExecReturn(QT_TRANSLATE_NOOP("Exception", "Hole error: Finding axis failed"));
|
||||
}
|
||||
|
||||
TopoShape result(0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user