From eb0f89f4779a54465ef14690b0b97797f619d0dd Mon Sep 17 00:00:00 2001 From: "Zheng, Lei" Date: Fri, 20 Jan 2017 17:46:47 +0800 Subject: [PATCH] Part: exported Part::sort_Edges Fixed export of Part::shape2pyshape --- src/Mod/Part/App/AppPartPy.cpp | 2 +- src/Mod/Part/App/TopoShapePyImp.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Part/App/AppPartPy.cpp b/src/Mod/Part/App/AppPartPy.cpp index 1a5b24493..3fab8fd9b 100644 --- a/src/Mod/Part/App/AppPartPy.cpp +++ b/src/Mod/Part/App/AppPartPy.cpp @@ -147,7 +147,7 @@ struct EdgePoints { TopoDS_Edge edge; }; -static std::list sort_Edges(double tol3d, std::list& edges) +std::list sort_Edges(double tol3d, std::list& edges) { tol3d = tol3d * tol3d; std::list edge_points; diff --git a/src/Mod/Part/App/TopoShapePyImp.cpp b/src/Mod/Part/App/TopoShapePyImp.cpp index c67c84011..8463311e0 100644 --- a/src/Mod/Part/App/TopoShapePyImp.cpp +++ b/src/Mod/Part/App/TopoShapePyImp.cpp @@ -159,7 +159,7 @@ int TopoShapePy::PyInit(PyObject* args, PyObject*) namespace Part { //common code.. maybe put somewhere else? -Py::Object PartExport shape2pyshape(const TopoDS_Shape &shape) +PartExport Py::Object shape2pyshape(const TopoDS_Shape &shape) { PyObject* ret = 0; if (!shape.IsNull()) {