+ make try/catch block around sortEdges
+ set shape immutable when getting from feature + no use of tuples in removeShape git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5402 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
This commit is contained in:
@@ -208,8 +208,7 @@ PyObject* TopoShapePy::removeShape(PyObject *args)
|
||||
Py::List list(l);
|
||||
std::vector<TopoDS_Shape> shapes;
|
||||
for (Py::List::iterator it = list.begin(); it != list.end(); ++it) {
|
||||
Py::Tuple tuple(*it);
|
||||
Py::TopoShape sh(tuple[0]);
|
||||
Py::TopoShape sh(*it);
|
||||
shapes.push_back(
|
||||
sh.extensionObject()->getTopoShapePtr()->_Shape
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user