Fix revolution with ShapeBinder profile (#17489)

* Fix revolution with ShapeBinder profile

* Remove log level init

---------

Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
This commit is contained in:
Florian Foinant-Willig
2024-11-11 17:48:18 +01:00
committed by GitHub
parent f90c6f56d3
commit b341dd1e64

View File

@@ -96,13 +96,7 @@ App::DocumentObjectExecReturn* Revolution::execute()
double angle2 = Base::toRadians(Angle2.getValue());
TopoShape sketchshape;
try {
sketchshape = getTopoShapeVerifiedFace();
}
catch (const Base::Exception& e) {
return new App::DocumentObjectExecReturn(e.what());
}
TopoShape sketchshape = getTopoShapeVerifiedFace();
// if the Base property has a valid shape, fuse the AddShape into it
TopoShape base;
@@ -160,7 +154,14 @@ App::DocumentObjectExecReturn* Revolution::execute()
// Create a fresh support even when base exists so that it can be used for patterns
TopoShape result(0);
TopoShape supportface = getSupportFace();
TopoShape supportface(0);
try {
supportface = getSupportFace();
}
catch(...) {
//do nothing, null shape is handle below
}
supportface.move(invObjLoc);
if (method == RevolMethod::ToFace || method == RevolMethod::ToFirst