fixes #0002722: Attached cube doesn't follow support
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user