Sketcher: GeometryFacade - convenience method to check if a geometry is blocked

This commit is contained in:
Abdullah Tahiri
2020-12-20 21:38:49 +01:00
committed by abdullahtahiriyo
parent e3873a73e9
commit ea006076e4
2 changed files with 7 additions and 0 deletions

View File

@@ -138,6 +138,12 @@ bool GeometryFacade::isInternalType(const Part::Geometry * geometry, InternalTyp
return gf->getInternalType() == type;
}
bool GeometryFacade::getBlocked(const Part::Geometry * geometry)
{
auto gf = GeometryFacade::getFacade(geometry);
return gf->getBlocked();
}
PyObject * GeometryFacade::getPyObject(void)
{
return new GeometryFacadePy(new GeometryFacade(this->Geo));