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:
theo-vt
2025-09-22 11:47:20 -04:00
committed by GitHub
parent c21b3ce418
commit 15bd51259a

View File

@@ -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);