fixes #0002722: Attached cube doesn't follow support

This commit is contained in:
wmayer
2017-09-25 22:36:02 +02:00
parent 3370d20a0d
commit 6d9886775c
3 changed files with 3 additions and 11 deletions

View File

@@ -75,12 +75,11 @@ App::DocumentObjectExecReturn *Box::execute(void)
BRepPrimAPI_MakeBox mkBox(L, W, H);
TopoDS_Shape ResultShape = mkBox.Shape();
this->Shape.setValue(ResultShape);
return Primitive::execute();
}
catch (Standard_Failure& e) {
return new App::DocumentObjectExecReturn(e.GetMessageString());
}
return App::DocumentObject::StdReturn;
}
/**

View File

@@ -70,8 +70,7 @@ App::DocumentObjectExecReturn *Circle::execute(void)
Base::toRadians<double>(this->Angle1.getValue()));
const TopoDS_Edge& edge = clMakeEdge.Edge();
this->Shape.setValue(edge);
return App::DocumentObject::StdReturn;
return Primitive::execute();
}
void Circle::onChanged(const App::Property* prop)

View File

@@ -954,16 +954,11 @@ App::DocumentObjectExecReturn *Spiral::execute(void)
BRepProj_Projection proj(wire, mkFace.Face(), gp::DZ());
this->Shape.setValue(proj.Shape());
Primitive::execute();
return Primitive::execute();
}
catch (Standard_Failure& e) {
return new App::DocumentObjectExecReturn(e.GetMessageString());
}
return Primitive::execute();
}
PROPERTY_SOURCE(Part::Wedge, Part::Primitive)
@@ -1044,7 +1039,6 @@ App::DocumentObjectExecReturn *Wedge::execute(void)
this->Shape.setValue(mkSolid.Solid());
}
catch (Standard_Failure& e) {
return new App::DocumentObjectExecReturn(e.GetMessageString());
}