PartDesign: re-enable multiple profiles in Revolution and Groove

This commit is contained in:
logari81
2012-11-03 22:37:07 +01:00
parent b44168f54b
commit 708d6bf308
2 changed files with 2 additions and 6 deletions

View File

@@ -133,9 +133,7 @@ App::DocumentObjectExecReturn *Groove::execute(void)
gp_Dir dir(v.x,v.y,v.z);
try {
// TopoDS::Face is not strictly necessary, but it will throw an exception for
// invalid wires e.g. intersections or multiple separate wires
TopoDS_Shape sketchshape = TopoDS::Face(makeFace(wires));
TopoDS_Shape sketchshape = makeFace(wires);
if (sketchshape.IsNull())
return new App::DocumentObjectExecReturn("Creating a face from sketch failed");

View File

@@ -139,9 +139,7 @@ App::DocumentObjectExecReturn *Revolution::execute(void)
gp_Dir dir(v.x,v.y,v.z);
try {
// TopoDS::Face is not strictly necessary, but it will throw an exception for
// invalid wires e.g. intersections or multiple separate wires
TopoDS_Shape sketchshape = TopoDS::Face(makeFace(wires));
TopoDS_Shape sketchshape = makeFace(wires);
if (sketchshape.IsNull())
return new App::DocumentObjectExecReturn("Creating a face from sketch failed");