From 442851f3086354184a1d2b246cf7f9cf758bd92f Mon Sep 17 00:00:00 2001 From: Abdullah Tahiri Date: Thu, 22 Dec 2022 07:40:05 +0100 Subject: [PATCH] Sketcher: Add convenience method to check for internal alignment type --- src/Mod/Sketcher/App/GeometryFacade.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Mod/Sketcher/App/GeometryFacade.h b/src/Mod/Sketcher/App/GeometryFacade.h index 68c342245b..12b778f5bc 100644 --- a/src/Mod/Sketcher/App/GeometryFacade.h +++ b/src/Mod/Sketcher/App/GeometryFacade.h @@ -166,6 +166,8 @@ public: bool isInternalAligned() const { return this->getInternalType() != InternalType::None; } + bool isInternalType(InternalType::InternalType type) const { return this->getInternalType() == type; } + // Geometry Extension Information inline const std::string &getExtensionName () const {return SketchGeoExtension->getName();}