From b0e50e2dac740b89f4846b2d808fa19dda5421ab Mon Sep 17 00:00:00 2001 From: nds Date: Tue, 9 Feb 2016 17:37:14 +0300 Subject: [PATCH] Correction to restart new Sketch features: Collinear, Middle point and Rectangle --- src/PartSet/PartSet_SketcherMgr.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/PartSet/PartSet_SketcherMgr.cpp b/src/PartSet/PartSet_SketcherMgr.cpp index 02b1daf59..eba4621e3 100755 --- a/src/PartSet/PartSet_SketcherMgr.cpp +++ b/src/PartSet/PartSet_SketcherMgr.cpp @@ -58,6 +58,8 @@ #include #include #include +#include +#include #include #include @@ -731,6 +733,10 @@ const QStringList& PartSet_SketcherMgr::sketchOperationIdList() aIds << SketchPlugin_Arc::ID().c_str(); aIds << SketchPlugin_Circle::ID().c_str(); aIds << SketchPlugin_ConstraintFillet::ID().c_str(); + aIds << SketchPlugin_Circle::ID().c_str(); + // TODO + // SketchRectangle is a python feature, so its ID is passed just as a string + aIds << "SketchRectangle"; aIds.append(constraintsIdList()); } return aIds; @@ -755,6 +761,8 @@ const QStringList& PartSet_SketcherMgr::constraintsIdList() aIds << SketchPlugin_ConstraintAngle::ID().c_str(); aIds << SketchPlugin_MultiRotation::ID().c_str(); aIds << SketchPlugin_MultiTranslation::ID().c_str(); + aIds << SketchPlugin_ConstraintCollinear::ID().c_str(); + aIds << SketchPlugin_ConstraintMiddle::ID().c_str(); } return aIds; } -- 2.39.2