+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
#include <SketchSolver_ConstraintAngle.h>
#include <SketchSolver_Manager.h>
#include <GeomAPI_Pnt2d.h>
#include <GeomAPI_XY.h>
+#include <ModelAPI_AttributeInteger.h>
+
+#include <SketchPlugin_ConstraintAngle.h>
+
#include <cmath>
void SketchSolver_ConstraintAngle::getAttributes(
SketchSolver_Constraint::getAttributes(theValue, theAttributes);
myAngle = theValue;
+ myType = myBaseConstraint->integer(SketchPlugin_ConstraintAngle::TYPE_ID())->value();
}
myAngle = aConstraint->value();
aBuilder->adjustConstraint(aConstraint);
myStorage->addConstraint(myBaseConstraint, aConstraint);
+
+ int aType = myBaseConstraint->integer(SketchPlugin_ConstraintAngle::TYPE_ID())->value();
+ if (aType != myType) {
+ myType = aType;
+ myStorage->setNeedToResolve(true);
+ }
}