PD: remove duplicate verifications
This commit is contained in:
@@ -1615,10 +1615,9 @@ static gp_Pnt toPnt(gp_Vec dir)
|
||||
|
||||
App::DocumentObjectExecReturn* Hole::execute(void)
|
||||
{
|
||||
Part::Feature* profile = 0;
|
||||
TopoDS_Shape profileshape;
|
||||
TopoDS_Shape profileshape;
|
||||
try {
|
||||
profile = getVerifiedObject();
|
||||
|
||||
profileshape = getVerifiedFace();
|
||||
}
|
||||
catch (const Base::Exception& e) {
|
||||
|
||||
@@ -85,8 +85,6 @@ App::DocumentObjectExecReturn *Pad::execute()
|
||||
|
||||
TopoDS_Shape sketchshape;
|
||||
try {
|
||||
getVerifiedObject();
|
||||
|
||||
sketchshape = getVerifiedFace();
|
||||
}
|
||||
catch (const Base::Exception& e) {
|
||||
|
||||
@@ -87,8 +87,6 @@ App::DocumentObjectExecReturn *Pocket::execute()
|
||||
|
||||
TopoDS_Shape profileshape;
|
||||
try {
|
||||
getVerifiedObject();
|
||||
|
||||
profileshape = getVerifiedFace();
|
||||
} catch (const Base::Exception& e) {
|
||||
return new App::DocumentObjectExecReturn(e.what());
|
||||
|
||||
Reference in New Issue
Block a user