Part: Geometry - Ensure that no point is set as construction by mistake/user mistake

This commit is contained in:
Abdullah Tahiri
2017-04-08 12:58:06 +02:00
committed by wmayer
parent 325eb2799d
commit ea99ba5897
+2 -1
View File
@@ -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