From 780f1245d1bb8e45aeead6b27a0823a9d79ea575 Mon Sep 17 00:00:00 2001 From: rraphael Date: Thu, 21 Jan 2021 21:00:54 +0100 Subject: [PATCH] rectangle: remove internal concidences on diagonals, which are ignored by python dump --- src/SketchPlugin/SketchPlugin_Rectangle.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/SketchPlugin/SketchPlugin_Rectangle.cpp b/src/SketchPlugin/SketchPlugin_Rectangle.cpp index 0518bdd33..22feb52a8 100644 --- a/src/SketchPlugin/SketchPlugin_Rectangle.cpp +++ b/src/SketchPlugin/SketchPlugin_Rectangle.cpp @@ -33,7 +33,6 @@ #include #include #include -#include #include @@ -196,7 +195,7 @@ void SketchPlugin_Rectangle::execute() for(int i = 0; i < 2; i++) { FeaturePtr aDiagonal = std::dynamic_pointer_cast(aDiagonalList->object(i)); - FeaturePtr aConstraint = SketchPlugin_Tools::createConstraintAttrObject(aSketch, SketchPlugin_ConstraintCoincidenceInternal::ID(), + FeaturePtr aConstraint = SketchPlugin_Tools::createConstraintAttrObject(aSketch, SketchPlugin_ConstraintCoincidence::ID(), aCoord, aDiagonal); aNotToDumpList->append(aConstraint); } @@ -219,7 +218,7 @@ void SketchPlugin_Rectangle::execute() { auto aDiagonalPoint = cornerToDiagonalLinePoints[i]; FeaturePtr aDiagonal = std::dynamic_pointer_cast(aDiagonalList->object(aDiagonalPoint.first)); - FeaturePtr aConstraint = SketchPlugin_Tools::createConstraintAttrAttr(aSketch, SketchPlugin_ConstraintCoincidenceInternal::ID(), + FeaturePtr aConstraint = SketchPlugin_Tools::createConstraintAttrAttr(aSketch, SketchPlugin_ConstraintCoincidence::ID(), aDiagonal->attribute(aDiagonalPoint.second), aLine->attribute(SketchPlugin_Line::START_ID())); aNotToDumpList->append(aConstraint); -- 2.39.2