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:
committed by
GitHub
parent
f90c6f56d3
commit
b341dd1e64
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user