From ea99ba589712a523ee40d8fb5912314964bec62b Mon Sep 17 00:00:00 2001 From: Abdullah Tahiri Date: Fri, 24 Feb 2017 01:43:47 +0100 Subject: [PATCH] Part: Geometry - Ensure that no point is set as construction by mistake/user mistake --- src/Mod/Part/App/GeometryPyImp.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Mod/Part/App/GeometryPyImp.cpp b/src/Mod/Part/App/GeometryPyImp.cpp index 7e761c80e3..737bb07ef6 100644 --- a/src/Mod/Part/App/GeometryPyImp.cpp +++ b/src/Mod/Part/App/GeometryPyImp.cpp @@ -217,7 +217,8 @@ Py::Boolean GeometryPy::getConstruction(void) const void GeometryPy::setConstruction(Py::Boolean arg) { - getGeometryPtr()->Construction = arg; + if(getGeometryPtr()->getClassTypeId() != Part::GeomPoint::getClassTypeId()) + getGeometryPtr()->Construction = arg; } PyObject *GeometryPy::getCustomAttributes(const char* /*attr*/) const