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

This commit is contained in:
Abdullah Tahiri
2017-02-24 01:43:47 +01:00
committed by wmayer
parent 325eb2799d
commit ea99ba5897

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