diff --git a/src/Mod/Sketcher/App/GeometryFacade.h b/src/Mod/Sketcher/App/GeometryFacade.h index a3b726db71..6ed12f89cf 100644 --- a/src/Mod/Sketcher/App/GeometryFacade.h +++ b/src/Mod/Sketcher/App/GeometryFacade.h @@ -128,9 +128,12 @@ public: virtual bool testGeometryMode(int flag) const override { return getGeoExt()->testGeometryMode(flag); } virtual void setGeometryMode(int flag, bool v=true) override { getGeoExt()->setGeometryMode(flag, v); } + // Convenience accessor bool getBlocked() const { return this->testGeometryMode(GeometryMode::Blocked);} void setBlocked(bool status = true) {this->setGeometryMode(GeometryMode::Blocked, status);} + bool isInternalAligned() const { return this->getInternalType() != InternalType::None; } + // Geometry Extension Information inline const std::string &getExtensionName () const {return SketchGeoExtension->getName();}