Part: Link support -- replace TopoShape.getSubShape() with Part::Feature::getTopoShape(obj, elementname, true).getShape() in order to support use of App::Link sublinks.
This commit is contained in:
@@ -300,7 +300,7 @@ bool SweepWidget::accept()
|
||||
topoShape = Part::Feature::getTopoShape(docobj);
|
||||
if (!topoShape.isNull()) {
|
||||
for (std::vector<std::string>::const_iterator it = subnames.begin(); it != subnames.end(); ++it) {
|
||||
subShapes.push_back(topoShape.getSubShape(subnames[0].c_str()));
|
||||
subShapes.push_back(Part::Feature::getTopoShape(docobj, subnames[0].c_str(), true /*need element*/));
|
||||
}
|
||||
for (std::vector<Part::TopoShape>::iterator it = subShapes.begin(); it != subShapes.end(); ++it) {
|
||||
TopoDS_Shape dsShape = (*it).getShape();
|
||||
|
||||
Reference in New Issue
Block a user